Integrated: 8310015: ZGC: Unbounded asynchronous unmapping can lead to running out of address space

Erik Österlund eosterlund at openjdk.org
Mon Jun 19 07:10:17 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.

This pull request has now been integrated.

Changeset: 4229baf9
Author:    Erik Österlund <eosterlund at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4229baf9b669ad0af94720cab21a4b80a6ae1c7e
Stats:     105 lines in 6 files changed: 93 ins; 6 del; 6 mod

8310015: ZGC: Unbounded asynchronous unmapping can lead to running out of address space

Reviewed-by: stefank, aboldtch

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

PR: https://git.openjdk.org/jdk/pull/14513


More information about the hotspot-dev mailing list