Pass self to lock methods.
This avoids frequent recomputation of
Thread::Current/pthread_getspecific.
Also add a futex based reader/writer mutex that is disabled.
Change-Id: I118fdb99ef1d1c4bfda6446ba3a0d8b6ab31eaee
diff --git a/src/debugger.cc b/src/debugger.cc
index aad75b1..8477054 100644
--- a/src/debugger.cc
+++ b/src/debugger.cc
@@ -2416,7 +2416,7 @@
// Wait for the request to finish executing.
while (req->invoke_needed_) {
- req->cond_.Wait(req->lock_);
+ req->cond_.Wait(self, req->lock_);
}
}
VLOG(jdwp) << " Control has returned from event thread";