提交 533b70e1 编写于 作者: T tschatzl

8005857: assert in GC_locker from PSOldGen::expand with -XX:+PrintGCDetails and Verbose

Summary: Use GC_locker::is_active_and_needs_gc() instead of GC_locker::is_active() for providing information about the reason of heap expansion.
Reviewed-by: jmasa, johnc
上级 8d560184
......@@ -256,7 +256,7 @@ void PSOldGen::expand(size_t bytes) {
}
if (PrintGC && Verbose) {
if (success && GC_locker::is_active()) {
if (success && GC_locker::is_active_and_needs_gc()) {
gclog_or_tty->print_cr("Garbage collection disabled, expanded heap instead");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册