gcc/libjava/gnu/gcj/runtime
Andrew Haley 765828d5a8 natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.
2002-12-03  Andrew Haley  <aph@redhat.com>

        * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call
	_Jv_PushClass.
        (_Jv_InitNewClassFields): Set protectionDomain and chain = NULL.
        (_Jv_PopClass): New.
        (_Jv_PushClass): New.
        * java/lang/natClass.cc (forName (jstring)): Use a StackTrace to
        discover the ClassLoader of our caller.
        (_Jv_CheckArrayStore): Don't check that a class is assignment
        compatible with Object.
        * java/lang/natVMTHrowable.cc: Delete.
        * gnu/gcj/runtime/StackTrace.java: New, partly copied from
	java.lang.VMThrowable.
        (StackTrace(), StackTrace(int)): New constructors.
        (classAt, methodAt, update, methodAtAddress): New methods.
        (map): New field.
	* java/lang/VMThrowable.java: Use StackTrace instead of
	natVMTHrowable.
	* java/lang/Class.h (getClassLoaderInternal): New.
        (class Class): Be friendly with _Jv_PopClass and _Jv_PushClass.
        Be friendly with gnu::gcj::runtime::StackTrace.
        (Object.chain): New field.
        * include/java-interp.h (class _Jv_InterpMethod): Be friendly with
        gnu::gcj::runtime::StackTrace.
	* gnu/gcj/runtime/natStackTrace.cc: New file.
	* gnu/gcj/runtime/MethodRef.java: New file.
        * prims.cc (_Jv_NewObjectArray): Use getClassLoaderInternal()
        instead of getClassLoader().
        * verify.cc (class _Jv_BytecodeVerifier): Likewise.
        java::lang::VMThrowable.
        * Makefile.am (core_java_source_files): Add MethodRef.java,
	StackTrace.java.
        (nat_source_files): Remove natVMThrowable.cc; add natStackTrace.cc.
        * Makefile.in: Rebuild.

From-SVN: r59771
2002-12-03 13:53:27 +00:00
..
FileDeleter.java natIconv.cc (read): Remove unused local. 2000-09-05 12:05:59 +01:00
FinalizerThread.java natFinalizerThread.cc: New file. 2001-10-10 22:25:43 +00:00
FirstThread.java natFinalizerThread.cc: New file. 2001-10-10 22:25:43 +00:00
JNIWeakRef.java Makefile.in: Rebuilt. 2001-11-13 17:43:41 +00:00
MethodRef.java natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass. 2002-12-03 13:53:27 +00:00
NameFinder.java NameFinder.java (remove_interpreter): New field. 2002-09-02 15:55:57 +00:00
natFinalizerThread.cc natFinalizerThread.cc: New file. 2001-10-10 22:25:43 +00:00
natFirstThread.cc Makefile.am: New friends for java/lang/Thread.h. 2001-08-26 12:30:09 +01:00
natNameFinder.cc NameFinder.java (remove_interpreter): New field. 2002-09-02 15:55:57 +00:00
natSharedLibLoader.cc fix include problem 2001-10-24 07:00:19 +00:00
natStackTrace.cc natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass. 2002-12-03 13:53:27 +00:00
natStringBuffer.cc String.java (String): New constructor. 2001-12-11 18:01:40 +00:00
SharedLibLoader.java SharedLibLoader.java: New class. 2001-09-29 12:16:27 -07:00
StackTrace.java natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass. 2002-12-03 13:53:27 +00:00
StringBuffer.java Add license clarification. 2002-01-22 22:40:42 +00:00
VMClassLoader.java jvm.h: Declare _Jv_RegisterResource. 2001-09-06 22:32:54 +00:00