--- a/src/hotspot/share/jfr/recorder/service/jfrRecorderThreadLoop.cpp Thu Apr 25 05:54:54 2019 -0700
+++ b/src/hotspot/share/jfr/recorder/service/jfrRecorderThreadLoop.cpp Thu Apr 25 10:56:31 2019 -0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -50,12 +50,12 @@
bool done = false;
int msgs = 0;
JfrRecorderService service;
- MutexLockerEx msg_lock(JfrMsg_lock);
+ MutexLocker msg_lock(JfrMsg_lock);
// JFR MESSAGE LOOP PROCESSING - BEGIN
while (!done) {
if (post_box.is_empty()) {
- JfrMsg_lock->wait(false);
+ JfrMsg_lock->wait();
}
msgs = post_box.collect();
JfrMsg_lock->unlock();