src/hotspot/share/utilities/vmError.cpp
changeset 59252 623722a6aeb9
parent 59248 e92153ed8bdc
--- a/src/hotspot/share/utilities/vmError.cpp	Mon Nov 25 12:32:40 2019 +0100
+++ b/src/hotspot/share/utilities/vmError.cpp	Mon Nov 25 12:33:15 2019 +0100
@@ -1365,7 +1365,7 @@
   }
   intptr_t mytid = os::current_thread_id();
   if (_first_error_tid == -1 &&
-      Atomic::cmpxchg(mytid, &_first_error_tid, (intptr_t)-1) == -1) {
+      Atomic::cmpxchg(&_first_error_tid, (intptr_t)-1, mytid) == -1) {
 
     // Initialize time stamps to use the same base.
     out.time_stamp().update_to(1);