Integrated: 8268779: ZGC: runtime/InternalApi/ThreadCpuTimesDeadlock.java#id1 failed with "OutOfMemoryError: Java heap space"
Per Liden
pliden at openjdk.java.net
Thu Nov 4 13:51:18 UTC 2021
On Wed, 3 Nov 2021 16:39:51 GMT, Per Liden <pliden at openjdk.org> wrote:
> Please review this fix for a ZGC shutdown/abort issue, introduced by JDK-8261759.
>
> If a GC cycle has aborted, we should not notify that it completed and we should not check for out of memory condition. Doing so can cause pre-mature `OutOfMemoryError`.
>
> Testing:
> - Tier 1-7 with ZGC on Linux/x86_64.
> - Wrote a small reproducer that provokes the problem fairly quickly. With this patch, I can no longer reproduced the issue.
This pull request has now been integrated.
Changeset: a6fa6ed1
Author: Per Liden <pliden at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/a6fa6ed1edc6f473a7fea1fa00edd467ab778983
Stats: 5 lines in 1 file changed: 5 ins; 0 del; 0 mod
8268779: ZGC: runtime/InternalApi/ThreadCpuTimesDeadlock.java#id1 failed with "OutOfMemoryError: Java heap space"
Reviewed-by: eosterlund, stefank
-------------
PR: https://git.openjdk.java.net/jdk/pull/6236
More information about the hotspot-gc-dev
mailing list