Re-enable parallel verification.
Check that when verifying and initializing a class the lock on the class
is held.
Add logging for slow verification of a method.
Change-Id: Id51f8a108b8d1801d61ee276fab5001ddc5c0044
diff --git a/src/object.cc b/src/object.cc
index cde7e04..dcf4ce9 100644
--- a/src/object.cc
+++ b/src/object.cc
@@ -612,6 +612,9 @@
CHECK(new_status > GetStatus() || new_status == kStatusError || !Runtime::Current()->IsStarted())
<< PrettyClass(this) << " " << GetStatus() << " -> " << new_status;
CHECK(sizeof(Status) == sizeof(uint32_t)) << PrettyClass(this);
+ if (new_status > kStatusResolved) {
+ CHECK_EQ(GetThinLockId(), Thread::Current()->GetThinLockId()) << PrettyClass(this);
+ }
if (new_status == kStatusError) {
CHECK_NE(GetStatus(), kStatusError) << PrettyClass(this);