summaryrefslogtreecommitdiff
path: root/openjdkjvmti/alloc_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'openjdkjvmti/alloc_manager.cc')
-rw-r--r--openjdkjvmti/alloc_manager.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/openjdkjvmti/alloc_manager.cc b/openjdkjvmti/alloc_manager.cc
index 5910073d79..b20e098546 100644
--- a/openjdkjvmti/alloc_manager.cc
+++ b/openjdkjvmti/alloc_manager.cc
@@ -198,9 +198,8 @@ void AllocationManager::PauseAllocations(art::Thread* self) {
// Force every thread to either be suspended or pass through a barrier.
art::ScopedThreadSuspension sts(self, art::ThreadState::kSuspended);
art::Barrier barrier(0);
- art::FunctionClosure fc([&](art::Thread* thr ATTRIBUTE_UNUSED) {
- barrier.Pass(art::Thread::Current());
- });
+ art::FunctionClosure fc(
+ [&]([[maybe_unused]] art::Thread* thr) { barrier.Pass(art::Thread::Current()); });
size_t requested = art::Runtime::Current()->GetThreadList()->RunCheckpoint(&fc);
barrier.Increment(self, requested);
}