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.
* 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.
2002-12-03 Andrew Haley <aph@redhat.com>
* class.c (make_class_data): New field, "chain".
* decl.c (java_init_decl_processing): Likewise.
From-SVN: r59769
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| .cvsignore | Loading commit data... | |
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| boehm-gc.h | Loading commit data... | |
| config.h.in | Loading commit data... | |
| default-signal.h | Loading commit data... | |
| dwarf2-signal.h | Loading commit data... | |
| i386-signal.h | Loading commit data... | |
| java-assert.h | Loading commit data... | |
| java-chardecomp.h | Loading commit data... | |
| java-chartables.h | Loading commit data... | |
| java-cpool.h | Loading commit data... | |
| java-insns.h | Loading commit data... | |
| java-interp.h | Loading commit data... | |
| java-props.h | Loading commit data... | |
| jni.h | Loading commit data... | |
| jvm.h | Loading commit data... | |
| jvmpi.h | Loading commit data... | |
| no-gc.h | Loading commit data... | |
| no-threads.h | Loading commit data... | |
| posix-threads.h | Loading commit data... | |
| posix.h | Loading commit data... | |
| s390-signal.h | Loading commit data... | |
| sparc-signal.h | Loading commit data... | |
| stamp-h.in | Loading commit data... | |
| win32-signal.h | Loading commit data... | |
| win32-threads.h | Loading commit data... | |
| win32.h | Loading commit data... |