src/hotspot/share/jfr/periodic/jfrPeriodic.cpp
changeset 54623 1126f0607c70
parent 52912 f94276ccc9fc
child 54764 865ec913f916
--- a/src/hotspot/share/jfr/periodic/jfrPeriodic.cpp	Thu Apr 25 05:54:54 2019 -0700
+++ b/src/hotspot/share/jfr/periodic/jfrPeriodic.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
@@ -409,7 +409,7 @@
   JfrTicks time_stamp = JfrTicks::now();
   {
     // Collect allocation statistics while holding threads lock
-    MutexLockerEx ml(Threads_lock);
+    MutexLocker ml(Threads_lock);
     for (JavaThreadIteratorWithHandle jtiwh; JavaThread *jt = jtiwh.next(); ) {
       allocated.append(jt->cooked_allocated_bytes());
       thread_ids.append(JFR_THREAD_ID(jt));