src/hotspot/share/utilities/vmError.cpp
changeset 59248 e92153ed8bdc
parent 58850 f4290bf1cc21
child 59252 623722a6aeb9
--- a/src/hotspot/share/utilities/vmError.cpp	Mon Nov 25 12:22:13 2019 +0100
+++ b/src/hotspot/share/utilities/vmError.cpp	Mon Nov 25 12:30:24 2019 +0100
@@ -399,7 +399,7 @@
 
 void VMError::record_reporting_start_time() {
   const jlong now = get_current_timestamp();
-  Atomic::store(now, &_reporting_start_time);
+  Atomic::store(&_reporting_start_time, now);
 }
 
 jlong VMError::get_reporting_start_time() {
@@ -408,7 +408,7 @@
 
 void VMError::record_step_start_time() {
   const jlong now = get_current_timestamp();
-  Atomic::store(now, &_step_start_time);
+  Atomic::store(&_step_start_time, now);
 }
 
 jlong VMError::get_step_start_time() {
@@ -416,7 +416,7 @@
 }
 
 void VMError::clear_step_start_time() {
-  return Atomic::store((jlong)0, &_step_start_time);
+  return Atomic::store(&_step_start_time, (jlong)0);
 }
 
 void VMError::report(outputStream* st, bool _verbose) {