[lilliput-jdk17u:lilliput] RFR: 8310156: [Lilliput/JDK17] Specialize full-GC loops
Aleksey Shipilev
shade at openjdk.org
Mon Jun 19 11:42:40 UTC 2023
On Mon, 19 Jun 2023 11:32:50 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> We already ported most of [JDK-8305896](https://bugs.openjdk.org/browse/JDK-8305896) to Lilliput/JDK17. What's missing is the specialization of the full-GC loops so that performance on the legacy path is not impacted and performance on the alt-GC-forwarding path is minimized.
>>
>> This corresponds to: https://github.com/openjdk/jdk/pull/13582/commits/6bbd29525b2864be37d96750ddc78f73d8eb0b65
>>
>> However, the changes differ significantly:
>> - G1 serial compaction is different
>> - There is no humongous compaction in JDK17 G1
>> - Serial GC has seen some refactors of the relevant loops between JDK17 and JDK22
>>
>> I see failing tests with Shenandoah, but they are pre-existing and should be investigated separately.
>>
>> Testing:
>> - [x] hotspot_gc
>> - [x] hotspot_gc -UCOH
>> - [x] tier1 -XX:+UseG1GC
>> - [x] tier1 -XX:+UseSerialGC
>> - [x] tier1 -XX:+UseShenandoahGC (not clean, but no regressions, either)
>> - [x] tier1 -XX:+UseG1GC -UCOH
>> - [x] tier1 -XX:+UseSerialGC -UCOH
>> - [x] tier1 -XX:+UseShenandoahGC -UCOH (not clean, but no regressions, either)
>
> src/hotspot/share/gc/g1/g1FullGCOopClosures.inline.hpp line 68:
>
>> 66:
>> 67: template<bool ALT_FWD>
>> 68: template <class T> inline void G1AdjustClosure<ALT_FWD>::adjust_pointer(T* p) {
>
> Suggestion:
>
> template <bool ALT_FWD>
> template <class T> inline void G1AdjustClosure<ALT_FWD>::adjust_pointer(T* p) {
Actually, maybe you want to merge both `template` declarations?
-------------
PR Review Comment: https://git.openjdk.org/lilliput-jdk17u/pull/32#discussion_r1233932083
More information about the lilliput-dev
mailing list