Interpreter.
The opcodes filled-new-array and packed-switch aren't implemented but
are trivial given that they are variants of implemented opcodes.
Refactor Field::Get routines to take the declaring class in the case of
static field accesses. This avoids a check on every use of a field.
Refactor arg array builder to be shared by JNI invokes and invocations
into the interpreter.
Fix benign bug in const decoding in the verifier.
Change-Id: I8dee6c1f4b7f033e6c003422c56e9471cfaccda8
diff --git a/src/class_linker.cc b/src/class_linker.cc
index d28d729..75f0f38 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -2355,8 +2355,8 @@
}
{
ObjectLock lock(self, klass.get()); // Must hold lock on object when initializing.
- interfaces_sfield->SetObject(NULL, interfaces);
- throws_sfield->SetObject(NULL, throws);
+ interfaces_sfield->SetObject(klass.get(), interfaces);
+ throws_sfield->SetObject(klass.get(), throws);
klass->SetStatus(Class::kStatusInitialized);
}