RFR: 8298647: GenShen require heap size 2MB granularity [v2]

William Kemper wkemper at openjdk.org
Wed Jan 18 17:20:06 UTC 2023


On Wed, 18 Jan 2023 09:19:40 GMT, Stuart Monteith <smonteith at openjdk.org> wrote:

>> src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp line 728:
>> 
>>> 726:   }
>>> 727: 
>>> 728:   // Generational Shenandoah needs this alignment for card tables.
>> 
>> Thank you for this fix! It would be nice if this constraint were only applied for generation mode, but these sizes are computed quite earlier during startup. You'd need to factor the code out of `ShenandoahHeap::initialize_heuristics` to know whether the constraint is required at this point.
>
> Yes, I thought I'd start with a simple fix to highlight the problem first. I experimented with exactly what you suggested, parsing ShenandoahGCMode. I can update this the 2MB alignment isn't desired unconditionally.

Yes please. We've tried to limit the impact of the generational mode on Shenandoah's other modes.

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

PR: https://git.openjdk.org/shenandoah/pull/202


More information about the shenandoah-dev mailing list