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

Albert Mingkun Yang ayang at openjdk.org
Thu Jan 2 06:34:43 UTC 2025


On Mon, 30 Dec 2024 01:07:44 GMT, Kim Barrett <kbarrett 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.

Marked as reviewed by ayang (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/22893#pullrequestreview-2527075314


More information about the hotspot-gc-dev mailing list