< prev index next >
src/hotspot/share/utilities/vmError.cpp
Print this page
@@ -1363,11 +1363,11 @@
if (SuppressFatalErrorMessage) {
os::abort(CreateCoredumpOnCrash);
}
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);
log.time_stamp().update_to(1);
< prev index next >