* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use _Jv_Malloc.
From-SVN: r41651
This commit is contained in:
parent
0539f1f709
commit
ad34a822c1
2 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,8 @@
|
||||||
* prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
|
* prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
|
||||||
* posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
|
* posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
|
||||||
(_Jv_ThreadDestroyData): Use _Jv_Free.
|
(_Jv_ThreadDestroyData): Use _Jv_Free.
|
||||||
|
* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
|
||||||
|
Use _Jv_Malloc.
|
||||||
|
|
||||||
2001-04-27 Tom Tromey <tromey@redhat.com>
|
2001-04-27 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
|
|
@ -403,7 +403,8 @@ _Jv_UnregisterClass (jclass the_class)
|
||||||
void
|
void
|
||||||
_Jv_RegisterInitiatingLoader (jclass klass, java::lang::ClassLoader *loader)
|
_Jv_RegisterInitiatingLoader (jclass klass, java::lang::ClassLoader *loader)
|
||||||
{
|
{
|
||||||
_Jv_LoaderInfo *info = new _Jv_LoaderInfo; // non-gc alloc!
|
// non-gc alloc!
|
||||||
|
_Jv_LoaderInfo *info = (_Jv_LoaderInfo *) _Jv_Malloc (sizeof(_Jv_LoaderInfo));
|
||||||
jint hash = HASH_UTF(klass->name);
|
jint hash = HASH_UTF(klass->name);
|
||||||
|
|
||||||
_Jv_MonitorEnter (&ClassClass);
|
_Jv_MonitorEnter (&ClassClass);
|
||||||
|
@ -412,7 +413,6 @@ _Jv_RegisterInitiatingLoader (jclass klass, java::lang::ClassLoader *loader)
|
||||||
info->next = initiated_classes[hash];
|
info->next = initiated_classes[hash];
|
||||||
initiated_classes[hash] = info;
|
initiated_classes[hash] = info;
|
||||||
_Jv_MonitorExit (&ClassClass);
|
_Jv_MonitorExit (&ClassClass);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function is called many times during startup, before main() is
|
// This function is called many times during startup, before main() is
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue