From facc279fc19a31c23323ce3eeac869eb14d07bda Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 4 Feb 2000 20:49:27 +0000 Subject: defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase pointers. * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase pointers. (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod if the method is native. * resolve.cc (ncode): Don't handle native methods. (_Jv_JNIMethod::ncode): New method. (_Jv_PrepareClass): Handle native methods. * jni.cc (call): Renamed from _Jv_JNI_conversion_call. Include AbstractMethodError.h. (add_char): New function. (mangled_name): Likewise. * include/java-interp.h (class _Jv_JNIMethod): New class. (class _Jv_MethodBase): New class. (class _Jv_InterpMethod): Derive from _Jv_MethodBase. (_Jv_InterpClass): Changed `interpreted_methods' field to type `_Jv_MethodBase'. * include/jvm.h (_Jv_FindSymbolInExecutable): Declare. * java/lang/natRuntime.cc (libraries_size, libraries_count, libraries): New globals. (add_library): New function. (_Jv_FindSymbolInExecutable): New function. * java/lang/natClassLoader.cc (initiated_classes, loaded_classes): Now static. From-SVN: r31790 --- libjava/java/lang/natClassLoader.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libjava/java/lang/natClassLoader.cc') diff --git a/libjava/java/lang/natClassLoader.cc b/libjava/java/lang/natClassLoader.cc index 77ae9f5b..ba7b2c6 100644 --- a/libjava/java/lang/natClassLoader.cc +++ b/libjava/java/lang/natClassLoader.cc @@ -308,8 +308,12 @@ struct _Jv_LoaderInfo { java::lang::ClassLoader *loader; }; -_Jv_LoaderInfo *initiated_classes[HASH_LEN]; -jclass loaded_classes[HASH_LEN]; +static _Jv_LoaderInfo *initiated_classes[HASH_LEN]; +static jclass loaded_classes[HASH_LEN]; + +// This is the root of a linked list of classes + + jclass _Jv_FindClassInCache (_Jv_Utf8Const *name, java::lang::ClassLoader *loader) -- cgit v1.1