From e353b2467629dfe1ef34494d96cc2c975c9a90c9 Mon Sep 17 00:00:00 2001 From: lxw Date: Mon, 21 Oct 2024 16:25:40 +0800 Subject: [PATCH] [GC] Fix activation mechanism for IOPrioritySizePolicy Summary: do not enable IOPrioritySizePolicy automatically on windows Testing: jtreg Reviewers: yyang, yude.lyd Issue: https://github.com/dragonwell-project/dragonwell11/issues/875 --- src/hotspot/share/gc/parallel/parallelArguments.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hotspot/share/gc/parallel/parallelArguments.cpp b/src/hotspot/share/gc/parallel/parallelArguments.cpp index 57f7ba3048f..09bf6dd4f5f 100644 --- a/src/hotspot/share/gc/parallel/parallelArguments.cpp +++ b/src/hotspot/share/gc/parallel/parallelArguments.cpp @@ -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) {