RFR: 8310015: ZGC: Unbounded asynchronous unmapping can lead to running out of address space
Erik Österlund
eosterlund at openjdk.org
Mon Jun 19 07:10:16 UTC 2023
On Fri, 16 Jun 2023 11:43:04 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
>> ZGC (both generational and non-generational) use asynchronous unmapping. Today the amount of unmapping requests we can queue up is unbounded. This can lead to a classic consumer producer problem, where the consumer is slower than the producer, and we eventually run out of address space and have to shut down.
>> This PR introduces an upper bound for the asynchronous unmapping, to prevent the VM from shutting down. Going forwards, there are some ideas to both increase the speed of unmapping and reduce the need for unmapping, but this PR is focused only on introducing a configurable bound for async unmapping.
>
> Looks good.
Thanks for the reviews @xmas92 and @stefank!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14513#issuecomment-1596622470
More information about the hotspot-dev
mailing list