RFR: 8310015: ZGC: Unbounded asynchronous unmapping can lead to running out of address space
Stefan Karlsson
stefank at openjdk.org
Fri Jun 16 11:34:58 UTC 2023
On Fri, 16 Jun 2023 10:23:23 GMT, Erik Österlund <eosterlund 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.
-------------
Marked as reviewed by stefank (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14513#pullrequestreview-1483264260
More information about the hotspot-dev
mailing list