Skip to content

Commit

Permalink
8333722: Fix CompilerDirectives for non-compiler JVM variants
Browse files Browse the repository at this point in the history
Reviewed-by: kvn
  • Loading branch information
simonis committed Jun 10, 2024
1 parent 83b3441 commit 5f9d3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/compiler/compilerDirectives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 5f9d3e3

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