Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8246075: Missing logging in nmethod::oops_do_marking_epilogue() on ea…
Browse files Browse the repository at this point in the history
…rly return path

Reviewed-by: kbarrett
  • Loading branch information
zhengyu123 committed Jun 1, 2020
1 parent bfd2e96 commit 4d10ebb
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/hotspot/share/code/nmethod.cpp
Expand Up @@ -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");
}

Expand Down

0 comments on commit 4d10ebb

Please sign in to comment.