< prev index next >
src/hotspot/share/utilities/vmError.cpp
Print this page
@@ -397,28 +397,28 @@
// Factor to translate the timestamp to seconds.
#define TIMESTAMP_TO_SECONDS_FACTOR (1000 * 1000 * 1000)
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() {
return Atomic::load(&_reporting_start_time);
}
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() {
return Atomic::load(&_step_start_time);
}
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) {
# define BEGIN if (_current_step == 0) { _current_step = __LINE__;
@@ -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 >