RFR: 8297247: Add GarbageCollectorMXBean for Remark and Cleanup pause time in G1 [v3]

Yude Lin duke at openjdk.org
Tue Nov 29 08:06:59 UTC 2022


On Mon, 28 Nov 2022 10:55:03 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> Yude Lin has updated the pull request incrementally with three additional commits since the last revision:
>> 
>>  - An additional test
>>  - More test fixes, including a destruction order problem
>>  - Namings
>
> test/jdk/com/sun/management/GarbageCollectorMXBean/GarbageCollectionNotificationTest.java line 107:
> 
>> 105:         for(int i = 0; i<100000000; i++) {
>> 106:             data[i%32] = new int[8];
>> 107:         }
> 
> Same as in the other test, I prefer using `wb.youngGC()` here.
> Also just maybe, since there are so many of these loops that trigger a full g1 concurrent mark, probably a helper method is in order (probably replacing this loop everywhere else in a separate CR).

I find this class MixedGCProvoker does what we need. I made a minor modification to it.

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

PR: https://git.openjdk.org/jdk/pull/11341


More information about the hotspot-gc-dev mailing list