fix GC safety bug in resolveClass

This commit is contained in:
Joel Dice 2010-11-27 14:44:49 -07:00
parent d4708907ea
commit adc5c95214

View File

@ -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 {