gcc/libjava/gnu/gcj
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
..
convert For PR libgcj/5303: 2002-03-25 22:08:27 +00:00
io re PR libgcj/5944 (Use of uint32_t breaks libgcj bootstrap on Solaris 2.5.1) 2002-03-15 21:59:12 +00:00
protocol URLConnection.java, [...]: Added implementation of getHeaderFields(). 2002-08-23 04:54:03 +00:00
runtime natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass. 2002-12-03 13:53:27 +00:00
xlib * gnu/gcj/xlib/WindowAttributes.java Assign null to RawData, not 0. 2002-03-09 08:25:13 -08:00
Core.java jvm.h: Declare _Jv_RegisterResource. 2001-09-06 22:32:54 +00:00
natCore.cc natCore.cc (create): Use __builtin_alloca, and compute correct length of UTF-8 encoded name. 2002-04-24 23:05:17 +00:00
RawData.java Thread.java: Declare `data' as Object, not RawData. 2000-05-18 11:08:25 +01:00