src/hotspot/share/utilities/events.hpp
changeset 51334 cc2c79d22508
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
--- a/src/hotspot/share/utilities/events.hpp	Wed Aug 08 15:31:06 2018 +0200
+++ b/src/hotspot/share/utilities/events.hpp	Wed Aug 08 15:31:07 2018 +0200
@@ -86,11 +86,11 @@
 
  public:
   EventLogBase<T>(const char* name, int length = LogEventsBufferEntries):
+    _mutex(Mutex::event, name, false, Monitor::_safepoint_check_never),
     _name(name),
     _length(length),
-    _count(0),
     _index(0),
-    _mutex(Mutex::event, name, false, Monitor::_safepoint_check_never) {
+    _count(0) {
     _records = new EventRecord<T>[length];
   }