Skip to content

Commit

Permalink
fix directives store used by jvmci.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTortugo committed Jul 30, 2024
1 parent 7288e8e commit b4f6a56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/compiler/compilerDirectives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ int CompilerDirectives::refcount() {
DirectiveSet* CompilerDirectives::get_for(int comp_level) {
assert(DirectivesStack_lock->owned_by_self(), "");
if (comp_level >= CompLevel::CompLevel_full_optimization) {
return _c2_store;
JVMCI_ONLY(return _c1_store;)
NOT_JVMCI(return _c2_store;)
} else {
// use c1_store as default
return _c1_store;
Expand Down

0 comments on commit b4f6a56

Please sign in to comment.