RFR: 8324817: Parallel GC does not pre-touch all heap pages when AlwaysPreTouch enabled and large page disabled [v5]

Wang Zhuo wzhuo at openjdk.org
Fri Feb 2 03:37:21 UTC 2024


On Thu, 1 Feb 2024 14:07:45 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> test/hotspot/jtreg/gc/parallel/TestAlwaysPreTouchBehavior.java line 31:
>> 
>>> 29:  * @requires vm.gc.Parallel
>>> 30:  * @requires os.family == "linux" & os.maxMemory > 2G
>>> 31:  * @library /test/lib
>> 
>> The test only works in release builds as the debug builds incidentally always pretouch bases.
>> I.e. add `@requires vm.debug != true`.
>> There does not seem to be a `@requires vm.release` or something.
>
> Another option is to `@require vm.debug` and add `-XX:-ZapUnusedHeapArea` to the run options ( suggested by @albertnetymk ).

Thanks, added @requires vm.debug != true

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/17610#discussion_r1475479639


More information about the hotspot-gc-dev mailing list