mirror of
https://github.com/corda/corda.git
synced 2025-01-09 14:33:30 +00:00
initialize classloader map if necessary in Avian_java_lang_ClassLoader_defineClass
This commit is contained in:
parent
df1aee5981
commit
8ac06d8a47
@ -186,6 +186,12 @@ Avian_java_lang_ClassLoader_defineClass
|
|||||||
t->m->heap->free(buffer, length);
|
t->m->heap->free(buffer, length);
|
||||||
|
|
||||||
if (c) {
|
if (c) {
|
||||||
|
if (classLoaderMap(t, loader) == 0) {
|
||||||
|
PROTECT(t, c);
|
||||||
|
object map = makeHashMap(t, 0, 0);
|
||||||
|
set(t, loader, ClassLoaderMap, map);
|
||||||
|
}
|
||||||
|
|
||||||
hashMapInsert(t, classLoaderMap(t, loader), className(t, c), c,
|
hashMapInsert(t, classLoaderMap(t, loader), className(t, c), c,
|
||||||
byteArrayHash);
|
byteArrayHash);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user