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

Thomas Schatzl tschatzl at openjdk.org
Thu Feb 1 14:10:04 UTC 2024


On Thu, 1 Feb 2024 13:38:15 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> Wang Zhuo has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   update test
>
> 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 ).

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

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


More information about the hotspot-gc-dev mailing list