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: #875
  • Loading branch information
weixlu committed Oct 21, 2024
1 parent 85a2ef0 commit e353b24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hotspot/share/gc/parallel/parallelArguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ void ParallelArguments::initialize() {
if (FLAG_IS_DEFAULT(MaxHeapFreeRatio)) {
FLAG_SET_DEFAULT(MaxHeapFreeRatio, 100);
}
#ifdef LINUX
// Auto-Enabled only on linux
if (FLAG_IS_DEFAULT(UseIOPrioritySizePolicy)) {
FLAG_SET_DEFAULT(UseIOPrioritySizePolicy, true);
}
#endif
}

if (UseIOPrioritySizePolicy && !UseAdaptiveSizePolicy) {
Expand Down

0 comments on commit e353b24

Please sign in to comment.