commit | 6e9f44c74c9f3d12078c32207f5206afb0a7ddb9 | [log] [tgz] |
---|---|---|
author | Thomas Schatzl <tschatzl@openjdk.org> | Thu Jan 11 10:40:01 2018 +0100 |
committer | Thomas Schatzl <tschatzl@openjdk.org> | Thu Jan 11 10:40:01 2018 +0100 |
tree | 2445200ed4d4250e9ef7b6f7b66c18a687d03bbe | |
parent | 906712e7c8b327b33032bbae5e6e77bd5ae8f92b [diff] |
8137099: G1 needs to "upgrade" GC within the safepoint if it can't allocate during that safepoint to avoid OoME During a minor GC, if memory allocation fails, start a full GC within the same VM operation in the same safepoint. This avoids a race where the GC locker can prevent the full GC from occurring, and a premature OoME. Co-authored-by: Axel Siebenborn <axel.siebenborn@sap.com> Reviewed-by: ehelin, sjohanss, phh