On Tue, 24 Nov 2026 01:31:43 GMT, David Holmes <[email protected]> wrote:

>>> I understand ZGC/AHS needs more accurate data for its own heuristics, but I 
>>> am concerned this is an intrusive change that will affect all GCs in ways 
>>> that may not yet be clear. Even if in theory all GCs should benefit from 
>>> this more accurate information, it may alter the way the GC now needs to be 
>>> tuned for existing applications on existing systems. Do we have general 
>>> performance results with this change in place?
>> 
>> The other GCs don't use available_memory. Most of them have very static heap 
>> sizing. The exception is G1 which has a GCTimeRatio that can adapt GC 
>> activity and heap a bit based on how much time is spent in GC safepoints. 
>> But mostly to lower heap usage below the static max heap size. But it is not 
>> back pressure aware. If it was - we would probably already have fixed this.
>> 
>> So the impact on other GCs should be zero. But I can take this for a perf 
>> spin if you want.
>
>> The other GCs don't use available_memory.
> 
> Okay that alleviates most of my concern. But of course it still leaves it an 
> open question for other parts of the VM that do use it.

Thanks for the review @dholmes-ora @dcubed-ojdk @xmas92 @mgronlun !

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

PR Comment: https://git.openjdk.org/jdk/pull/33895#issuecomment-7338800529

Reply via email to