summaryrefslogtreecommitdiff
path: root/openjdkjvmti/OpenjdkJvmTi.cc
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2017-09-14 09:51:14 -0700
committer Alex Light <allight@google.com> 2017-09-15 09:59:31 -0700
commit41006c6e8c0c5132a22bb7e100b6cd545dbb55a6 (patch)
tree3cdfe6aeed8f5e6bd7c865bdc3911191577af402 /openjdkjvmti/OpenjdkJvmTi.cc
parent77fee87b262e969b29a9ac121a8bcbf87b68d9ce (diff)
Implement JVMTI GetCurrentContendedMonitor
Adds the JVMTI can_get_current_contended_monitor capability and implements all associated functions and behaviors. Test: ./test.py --host -j50 Bug: 62821960 Bug: 34415266 Change-Id: Ia3f19f0fbb21125bc85fb71f55e52ec61141c4ec
Diffstat (limited to 'openjdkjvmti/OpenjdkJvmTi.cc')
-rw-r--r--openjdkjvmti/OpenjdkJvmTi.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/openjdkjvmti/OpenjdkJvmTi.cc b/openjdkjvmti/OpenjdkJvmTi.cc
index 277f611eb7..4339b2bdef 100644
--- a/openjdkjvmti/OpenjdkJvmTi.cc
+++ b/openjdkjvmti/OpenjdkJvmTi.cc
@@ -207,11 +207,11 @@ class JvmtiFunctions {
}
static jvmtiError GetCurrentContendedMonitor(jvmtiEnv* env,
- jthread thread ATTRIBUTE_UNUSED,
- jobject* monitor_ptr ATTRIBUTE_UNUSED) {
+ jthread thread,
+ jobject* monitor_ptr) {
ENSURE_VALID_ENV(env);
ENSURE_HAS_CAP(env, can_get_current_contended_monitor);
- return ERR(NOT_IMPLEMENTED);
+ return MonitorUtil::GetCurrentContendedMonitor(env, thread, monitor_ptr);
}
static jvmtiError RunAgentThread(jvmtiEnv* env,