Skip to content


Browse files Browse the repository at this point in the history
8269594: assert(_handle_mark_nesting > 1) failed: memory leak: alloca…
…ting handle outside HandleMark

Backport-of: 4b4bef4
  • Loading branch information
zhengyu123 committed Jul 2, 2021
1 parent 71f793e commit 73e987c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/safepoint.cpp
Expand Up @@ -1192,6 +1192,7 @@ void ThreadSafepointState::handle_polling_page_exception() {
if( nm->is_at_poll_return(real_return_addr) ) {
// See if return type is an oop.
bool return_oop = nm->method()->is_returning_oop();
HandleMark hm(self);
Handle return_value;
if (return_oop) {
// The oop result has been saved on the stack together with all
Expand Down

1 comment on commit 73e987c

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.