mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-02 08:40:26 +08:00
natClassLoader.cc (_Jv_NewClass): Use _Jv_RegisterInitiatingLoader to register array classes, not _Jv_RegisterClass.
* java/lang/natClassLoader.cc (_Jv_NewClass): Use _Jv_RegisterInitiatingLoader to register array classes, not _Jv_RegisterClass. (_Jv_RegisterInitiatingLoader): Give up if called very early during bootstrapping. Add a FIXME to handle this case better. From-SVN: r99993
This commit is contained in:
parent
cabf144776
commit
146e2904bc
@ -1,3 +1,11 @@
|
||||
2005-05-19 Bryce McKinlay <mckinlay@redhat.com>
|
||||
|
||||
* java/lang/natClassLoader.cc (_Jv_NewClass): Use
|
||||
_Jv_RegisterInitiatingLoader to register array classes, not
|
||||
_Jv_RegisterClass.
|
||||
(_Jv_RegisterInitiatingLoader): Give up if called very early during
|
||||
bootstrapping. Add a FIXME to handle this case better.
|
||||
|
||||
2005-05-19 Bryce McKinlay <mckinlay@redhat.com>
|
||||
|
||||
* Makefile.am (libgcj0_convenience_la): Removed. Don't build a libgcj
|
||||
|
@ -127,6 +127,14 @@ _Jv_RegisterInitiatingLoader (jclass klass, java::lang::ClassLoader *loader)
|
||||
{
|
||||
if (! loader)
|
||||
loader = java::lang::VMClassLoader::bootLoader;
|
||||
if (! loader)
|
||||
{
|
||||
// Very early in the bootstrap process, the Bootstrap classloader may
|
||||
// not exist yet.
|
||||
// FIXME: We could maintain a list of these and come back and register
|
||||
// them later.
|
||||
return;
|
||||
}
|
||||
loader->loadedClasses->put(klass->name->toString(), klass);
|
||||
}
|
||||
|
||||
@ -346,7 +354,7 @@ _Jv_NewClass (_Jv_Utf8Const *name, jclass superclass,
|
||||
ret->superclass = superclass;
|
||||
ret->loader = loader;
|
||||
|
||||
_Jv_RegisterClass (ret);
|
||||
_Jv_RegisterInitiatingLoader (ret, loader);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user