< prev index next >
src/hotspot/share/utilities/vmError.cpp
Print this page
*** 397,424 ****
// 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);
}
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);
}
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);
}
void VMError::report(outputStream* st, bool _verbose) {
# define BEGIN if (_current_step == 0) { _current_step = __LINE__;
--- 397,424 ----
// 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(&_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(&_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(&_step_start_time, (jlong)0);
}
void VMError::report(outputStream* st, bool _verbose) {
# define BEGIN if (_current_step == 0) { _current_step = __LINE__;
< prev index next >