Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8246075: Missing logging in nmethod::oops_do_marking_epilogue() on ea…
…rly return path

Reviewed-by: kbarrett
  • Loading branch information
zhengyu123 committed Jun 1, 2020
1 parent bfd2e96 commit 4d10ebba1229f73ab22218f514e0436b9084739d
Showing with 15 additions and 16 deletions.
  1. +15 −16 src/hotspot/share/code/nmethod.cpp
@@ -2004,23 +2004,22 @@ void nmethod::oops_do_marking_epilogue() {

nmethod* next = _oops_do_mark_nmethods;
_oops_do_mark_nmethods = NULL;
if (next == NULL) {
return;
if (next != NULL) {
nmethod* cur;
do {
cur = next;
next = extract_nmethod(cur->_oops_do_mark_link);
cur->_oops_do_mark_link = NULL;
DEBUG_ONLY(cur->verify_oop_relocations());

LogTarget(Trace, gc, nmethod) lt;
if (lt.is_enabled()) {
LogStream ls(lt);
CompileTask::print(&ls, cur, "oops_do, unmark", /*short_form:*/ true);
}
// End if self-loop has been detected.
} while (cur != next);
}
nmethod* cur;
do {
cur = next;
next = extract_nmethod(cur->_oops_do_mark_link);
cur->_oops_do_mark_link = NULL;
DEBUG_ONLY(cur->verify_oop_relocations());

LogTarget(Trace, gc, nmethod) lt;
if (lt.is_enabled()) {
LogStream ls(lt);
CompileTask::print(&ls, cur, "oops_do, unmark", /*short_form:*/ true);
}
// End if self-loop has been detected.
} while (cur != next);
log_trace(gc, nmethod)("oops_do_marking_epilogue");
}

0 comments on commit 4d10ebb

Please sign in to comment.