mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-12 11:28:35 +00:00
8333722: Fix CompilerDirectives for non-compiler JVM variants
Reviewed-by: thartmann Backport-of: 5f9d3e3af8342592242cb304b2c219508d56ed3a
This commit is contained in:
parent
31696a445c
commit
fdbc2b24d3
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user