mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +00:00
fix GC safety bug in resolveClass
This commit is contained in:
parent
d4708907ea
commit
adc5c95214
@ -3294,15 +3294,15 @@ resolveClass(Thread* t, object loader, object spec, bool throw_)
|
||||
} else {
|
||||
expect(t, throw_);
|
||||
|
||||
PROTECT(t, loader);
|
||||
PROTECT(t, spec);
|
||||
|
||||
{ object c = findLoadedClass(t, loader, spec);
|
||||
if (c) {
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
PROTECT(t, loader);
|
||||
PROTECT(t, spec);
|
||||
|
||||
if (byteArrayBody(t, spec, 0) == '[') {
|
||||
return resolveArrayClass(t, loader, spec, throw_);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user