Skip to content

Commit

Permalink
[GC] Fix activation mechanism for IOPrioritySizePolicy
Browse files Browse the repository at this point in the history
Summary: do not enable IOPrioritySizePolicy automatically on windows
Testing: jtreg
Reviewers: yyang, yude.lyd
Issue: #685
  • Loading branch information
weixlu committed Oct 21, 2024
1 parent 6b6e524 commit 5dbea5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hotspot/src/share/vm/runtime/arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1664,9 +1664,12 @@ void Arguments::set_parallel_gc_flags() {
FLAG_SET_DEFAULT(MaxHeapFreeRatio, 100);
_max_heap_free_ratio = MaxHeapFreeRatio;
}
#if defined(LINUX) && (defined(AMD64) || (defined(AARCH64)))
// Auto-Enabled only on linux-x64 or arm64
if (FLAG_IS_DEFAULT(UseIOPrioritySizePolicy)) {
FLAG_SET_DEFAULT(UseIOPrioritySizePolicy, true);
}
#endif
}

if (UseIOPrioritySizePolicy && !UseAdaptiveSizePolicy) {
Expand Down

0 comments on commit 5dbea5a

Please sign in to comment.