RFR: 8345374: Ubsan: runtime error: division by zero

Kim Barrett kbarrett at openjdk.org
Thu Jan 2 08:14:39 UTC 2025


On Tue, 31 Dec 2024 06:55:40 GMT, Julian Waters <jwaters at openjdk.org> wrote:

>> Please review this change to G1HeapSizingPolicy to avoid a float division by
>> zero when calculating the maximum desired capacity with a MaxHeapFreeRatio
>> value of 100%.
>> 
>> Testing: mach5 tier1 with G1 and MaxHeapFreeRatio=100.
>
> Looks alright, but I think the title needs to be changed to match the one on the tracker

Thanks for reviews @TheShermanTanker , @albertnetymk , and @offamitkumar

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

PR Comment: https://git.openjdk.org/jdk/pull/22893#issuecomment-2567406190


More information about the hotspot-gc-dev mailing list