Skip to content

Commit

Permalink
8304683: Memory leak in WB_IsMethodCompatible
Browse files Browse the repository at this point in the history
Backport-of: 760c0128a4ef787c8c8addb26894c072ba8b2eb1
  • Loading branch information
GoeLin committed Apr 20, 2023
1 parent 06b764c commit 8f10b35
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/hotspot/share/prims/whitebox.cpp
Expand Up @@ -821,10 +821,9 @@ static bool is_excluded_for_compiler(AbstractCompiler* comp, methodHandle& mh) {
return true;
}
DirectiveSet* directive = DirectivesStack::getMatchingDirective(mh, comp);
if (directive->ExcludeOption) {
return true;
}
return false;
bool exclude = directive->ExcludeOption;
DirectivesStack::release(directive);
return exclude;
}

static bool can_be_compiled_at_level(methodHandle& mh, jboolean is_osr, int level) {
Expand Down

1 comment on commit 8f10b35

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