Skip to content

Commit

Permalink
8297964: Jetty.java fails "assert(_no_handle_mark_nesting == 0) faile…
Browse files Browse the repository at this point in the history
…d: allocating handle inside NoHandleMark"

Reviewed-by: egahlin
  • Loading branch information
Markus Grönlund committed Dec 7, 2022
1 parent 3e041eb commit bfcc238
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hotspot/share/jfr/recorder/stacktrace/jfrStackTrace.cpp
Expand Up @@ -274,7 +274,10 @@ bool JfrStackTrace::record(JavaThread* jt, const frame& frame, int skip) {
assert(jt != NULL, "invariant");
assert(jt == Thread::current(), "invariant");
assert(!_lineno, "invariant");
HandleMark hm(jt); // RegisterMap uses Handles to support continuations.
// Must use ResetNoHandleMark here to bypass if any NoHandleMark exist on stack.
// This is because RegisterMap uses Handles to support continuations.
ResetNoHandleMark rnhm;
HandleMark hm(jt);
JfrVframeStream vfs(jt, frame, false, false);
u4 count = 0;
_reached_root = true;
Expand Down

1 comment on commit bfcc238

@openjdk-notifier
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.