mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8146409: TestPromotionFailedEventWithParallelScavenge.java failed with assert(_time_stamps != __null) failed: Sanity
Reviewed-by: tschatzl, jwilhelm
This commit is contained in:
parent
fab3e53ec1
commit
a476bf01f4
1 changed files with 14 additions and 11 deletions
|
@ -78,19 +78,22 @@ GCTaskTimeStamp* GCTaskThread::time_stamp_at(uint index) {
|
||||||
|
|
||||||
void GCTaskThread::print_task_time_stamps() {
|
void GCTaskThread::print_task_time_stamps() {
|
||||||
assert(log_is_enabled(Debug, gc, task, time), "Sanity");
|
assert(log_is_enabled(Debug, gc, task, time), "Sanity");
|
||||||
assert(_time_stamps != NULL, "Sanity");
|
|
||||||
|
|
||||||
log_debug(gc, task, time)("GC-Thread %u entries: %d", id(), _time_stamp_index);
|
// Since _time_stamps is now lazily allocated we need to check that it
|
||||||
for(uint i=0; i<_time_stamp_index; i++) {
|
// has in fact been allocated when calling this function.
|
||||||
GCTaskTimeStamp* time_stamp = time_stamp_at(i);
|
if (_time_stamps != NULL) {
|
||||||
log_debug(gc, task, time)("\t[ %s " JLONG_FORMAT " " JLONG_FORMAT " ]",
|
log_debug(gc, task, time)("GC-Thread %u entries: %d", id(), _time_stamp_index);
|
||||||
time_stamp->name(),
|
for(uint i=0; i<_time_stamp_index; i++) {
|
||||||
time_stamp->entry_time(),
|
GCTaskTimeStamp* time_stamp = time_stamp_at(i);
|
||||||
time_stamp->exit_time());
|
log_debug(gc, task, time)("\t[ %s " JLONG_FORMAT " " JLONG_FORMAT " ]",
|
||||||
|
time_stamp->name(),
|
||||||
|
time_stamp->entry_time(),
|
||||||
|
time_stamp->exit_time());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset after dumping the data
|
||||||
|
_time_stamp_index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset after dumping the data
|
|
||||||
_time_stamp_index = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GC workers get tasks from the GCTaskManager and execute
|
// GC workers get tasks from the GCTaskManager and execute
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue