summaryrefslogtreecommitdiff
path: root/openjdkjvmti/ti_monitor.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2018-10-16 13:09:32 -0700
committer Andreas Gampe <agampe@google.com> 2018-10-17 12:17:28 -0700
commit6e8977690147b75096c0a993efb53ae329e3fd2c (patch)
treedd2e653b893e2d91a9c238a3468f66a3def98743 /openjdkjvmti/ti_monitor.cc
parent0de385f9eb5f8c066121ea2d43e8b8eea6a726fa (diff)
ART: Refactor for bugprone-argument-comment
Handles openjdkjvmti. Bug: 116054210 Test: WITH_TIDY=1 mmma art Change-Id: Ic73e3f32b08f3b6d9300428ad95d12a696db0458
Diffstat (limited to 'openjdkjvmti/ti_monitor.cc')
-rw-r--r--openjdkjvmti/ti_monitor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/openjdkjvmti/ti_monitor.cc b/openjdkjvmti/ti_monitor.cc
index f71328a6b6..aac7233303 100644
--- a/openjdkjvmti/ti_monitor.cc
+++ b/openjdkjvmti/ti_monitor.cc
@@ -191,7 +191,7 @@ class JvmtiMonitor {
// Reaquire the mutex/monitor, also go to sleep if we were suspended.
// TODO Give an extension to wait without suspension as well.
- MonitorEnter(self, /*suspend*/ true);
+ MonitorEnter(self, /*suspend=*/ true);
CHECK(owner_.load(std::memory_order_relaxed) == self);
DCHECK_EQ(1u, count_);
// Reset the count.
@@ -261,7 +261,7 @@ jvmtiError MonitorUtil::RawMonitorEnterNoSuspend(jvmtiEnv* env ATTRIBUTE_UNUSED,
JvmtiMonitor* monitor = DecodeMonitor(id);
art::Thread* self = art::Thread::Current();
- monitor->MonitorEnter(self, /*suspend*/false);
+ monitor->MonitorEnter(self, /*suspend=*/false);
return ERR(NONE);
}
@@ -274,7 +274,7 @@ jvmtiError MonitorUtil::RawMonitorEnter(jvmtiEnv* env ATTRIBUTE_UNUSED, jrawMoni
JvmtiMonitor* monitor = DecodeMonitor(id);
art::Thread* self = art::Thread::Current();
- monitor->MonitorEnter(self, /*suspend*/true);
+ monitor->MonitorEnter(self, /*suspend=*/true);
return ERR(NONE);
}