Explicitly pass Thread::Current to MutexLock and Alloc.
Change-Id: I8b75bc0617915465f102815b32306aa7760dcae4
diff --git a/src/jni_internal_test.cc b/src/jni_internal_test.cc
index bc1be28..d94da1e 100644
--- a/src/jni_internal_test.cc
+++ b/src/jni_internal_test.cc
@@ -93,7 +93,7 @@
: c->FindVirtualMethod(method_name, method_signature);
CHECK(method != NULL);
- receiver = (is_static ? NULL : c->AllocObject());
+ receiver = (is_static ? NULL : c->AllocObject(self));
AbstractMethod::InvokeStub* stub = method->GetInvokeStub();
CHECK(stub != NULL);