8333722: Fix CompilerDirectives for non-compiler JVM variants

Reviewed-by: kvn
This commit is contained in:
Volker Simonis 2024-06-10 09:37:43 +00:00
parent 83b34410e3
commit 5f9d3e3af8

View File

@ -761,7 +761,7 @@ DirectiveSet* DirectivesStack::getMatchingDirective(const methodHandle& method,
if (dir->is_default_directive() || dir->match(method)) {
match = dir->get_for(comp);
assert(match != nullptr, "Consistency");
if (match->EnableOption) {
if (match->EnableOption || dir->is_default_directive()) {
// The directiveSet for this compile is also enabled -> success
dir->inc_refcount();
break;