8304683: Memory leak in WB_IsMethodCompatible

Reviewed-by: thartmann
This commit is contained in:
Justin King 2023-03-22 15:28:44 +00:00
parent 75168eaca3
commit 760c0128a4

View File

@ -824,10 +824,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) {