fix GC safety bug in jvmGetClassInterfaces

This commit is contained in:
Joel Dice 2011-02-19 14:07:45 -07:00
parent 19c443254d
commit 2ce549d3f8

View File

@ -2722,6 +2722,8 @@ jvmGetClassInterfaces(Thread* t, uintptr_t* arguments)
object table = classInterfaceTable(t, jclassVmClass(t, *c));
if (table) {
PROTECT(t, table);
unsigned stride =
(classFlags(t, jclassVmClass(t, *c)) & ACC_INTERFACE) == 0 ? 2 : 1;