diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-09 20:58:17 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-09 20:58:17 +0000 |
commit | 3f16097122dfeb96edc51c5f5dd4c0c3ea5e057d (patch) | |
tree | ef2d0f788fbc08bffe034dcb2415e86447953d3b /libjava | |
parent | f9710d1cf7736bf013b4949f0f43db39124cf4ca (diff) | |
download | gcc-3f16097122dfeb96edc51c5f5dd4c0c3ea5e057d.tar.gz |
* java/lang/natVMClassLoader.cc (defineClass): Reference
'systemClassLoader' field directly.
* java/lang/natRuntime.cc (_load): Reference 'systemClassLoader'
field directly.
* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
Reference 'systemClassLoader' field directly.
(_Jv_UnregisterInitiatingLoader): Likewise.
(_Jv_FindClass): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96208 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 11 | ||||
-rw-r--r-- | libjava/java/lang/natClassLoader.cc | 7 | ||||
-rw-r--r-- | libjava/java/lang/natRuntime.cc | 2 | ||||
-rw-r--r-- | libjava/java/lang/natVMClassLoader.cc | 2 |
4 files changed, 16 insertions, 6 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index aaf6e314f1c..680473cb8ac 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,14 @@ +2005-03-09 Tom Tromey <tromey@redhat.com> + + * java/lang/natVMClassLoader.cc (defineClass): Reference + 'systemClassLoader' field directly. + * java/lang/natRuntime.cc (_load): Reference 'systemClassLoader' + field directly. + * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): + Reference 'systemClassLoader' field directly. + (_Jv_UnregisterInitiatingLoader): Likewise. + (_Jv_FindClass): Likewise. + 2005-03-09 Andreas Tobler <a.tobler@schweiz.ch> * java/lang/fdlibm.h: Merge an AIX define from GNU Classpath. diff --git a/libjava/java/lang/natClassLoader.cc b/libjava/java/lang/natClassLoader.cc index 17b2a883386..dfb976a2954 100644 --- a/libjava/java/lang/natClassLoader.cc +++ b/libjava/java/lang/natClassLoader.cc @@ -106,7 +106,7 @@ void _Jv_RegisterInitiatingLoader (jclass klass, java::lang::ClassLoader *loader) { if (! loader) - loader = java::lang::ClassLoader::getSystemClassLoader(); + loader = java::lang::ClassLoader::systemClassLoader; loader->loadedClasses->put(klass->name->toString(), klass); } @@ -116,7 +116,7 @@ void _Jv_UnregisterInitiatingLoader (jclass klass, java::lang::ClassLoader *loader) { if (! loader) - loader = java::lang::ClassLoader::getSystemClassLoader(); + loader = java::lang::ClassLoader::systemClassLoader; loader->loadedClasses->remove(klass->name->toString()); } @@ -211,8 +211,7 @@ _Jv_FindClass (_Jv_Utf8Const *name, java::lang::ClassLoader *loader) // See if the class was already loaded by this loader. This handles // initiating loader checks, as we register classes with their // initiating loaders. - java::lang::ClassLoader *sys - = java::lang::ClassLoader::getSystemClassLoader (); + java::lang::ClassLoader *sys = java::lang::ClassLoader::systemClassLoader; java::lang::ClassLoader *real = loader; if (! real) real = sys; diff --git a/libjava/java/lang/natRuntime.cc b/libjava/java/lang/natRuntime.cc index 31f9b90b6fa..97a69b27f28 100644 --- a/libjava/java/lang/natRuntime.cc +++ b/libjava/java/lang/natRuntime.cc @@ -163,7 +163,7 @@ java::lang::Runtime::_load (jstring path, jboolean do_search) if (do_search) { - ClassLoader *sys = ClassLoader::getSystemClassLoader(); + ClassLoader *sys = ClassLoader::systemClassLoader; ClassLoader *look = NULL; gnu::gcj::runtime::StackTrace *t = new gnu::gcj::runtime::StackTrace(10); try diff --git a/libjava/java/lang/natVMClassLoader.cc b/libjava/java/lang/natVMClassLoader.cc index 1da79497154..9a539d7e5c3 100644 --- a/libjava/java/lang/natVMClassLoader.cc +++ b/libjava/java/lang/natVMClassLoader.cc @@ -68,7 +68,7 @@ java::lang::VMClassLoader::defineClass (java::lang::ClassLoader *loader, // Record the defining loader. For the system class loader, we // record NULL. - if (loader != java::lang::ClassLoader::getSystemClassLoader()) + if (loader != java::lang::ClassLoader::systemClassLoader) klass->loader = loader; if (name != 0) |