Implement ThreadReference.CurrentContendedMonitor and ThreadReference.Interrupt.
The JDWP test for CurrentContendedMonitor also uses Interrupt.
Change-Id: Id1f6add29b578a0494da672d21dd54f23e866475
diff --git a/src/monitor.h b/src/monitor.h
index 66db42e..1b5ab76 100644
--- a/src/monitor.h
+++ b/src/monitor.h
@@ -88,6 +88,9 @@
LOCKS_EXCLUDED(Locks::thread_suspend_count_lock_)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+ // Used to implement JDWP's ThreadReference.CurrentContendedMonitor.
+ static Object* GetContendedMonitor(Thread* thread);
+
// Calls 'callback' once for each lock held in the single stack frame represented by
// the current state of 'stack_visitor'.
static void VisitLocks(StackVisitor* stack_visitor, void (*callback)(Object*, void*), void* callback_context)