mirror of
https://github.com/corda/corda.git
synced 2025-01-07 21:48:46 +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 {
|
} else {
|
||||||
expect(t, throw_);
|
expect(t, throw_);
|
||||||
|
|
||||||
|
PROTECT(t, loader);
|
||||||
|
PROTECT(t, spec);
|
||||||
|
|
||||||
{ object c = findLoadedClass(t, loader, spec);
|
{ object c = findLoadedClass(t, loader, spec);
|
||||||
if (c) {
|
if (c) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PROTECT(t, loader);
|
|
||||||
PROTECT(t, spec);
|
|
||||||
|
|
||||||
if (byteArrayBody(t, spec, 0) == '[') {
|
if (byteArrayBody(t, spec, 0) == '[') {
|
||||||
return resolveArrayClass(t, loader, spec, throw_);
|
return resolveArrayClass(t, loader, spec, throw_);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user