RFR: 8316632: Shenandoah: Raise OOME when gc threshold is exceeded

Aleksey Shipilev shade at openjdk.org
Thu Sep 21 08:31:42 UTC 2023


On Wed, 20 Sep 2023 22:41:52 GMT, William Kemper <wkemper at openjdk.org> wrote:

> Shenandoah will run back-to-back full GCs and _almost_ grind mutator progress to a halt before eventually exhausting memory. This change will have Shenandoah raise a gc threshold exceeded exception if the collector fails to make progress after `ShenandoahNoProgressThreshold` full GC cycles (default is 3).

Please also run `tier1 tier2 tier3` with Shenandoah? In `hotspot:tier1`, I am seeing the failure here:


TEST: gc/InfiniteList.java

STDERR:
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.base/java.util.jar.Manifest$FastInputStream.<init>(Manifest.java:421)
        at java.base/java.util.jar.Manifest$FastInputStream.<init>(Manifest.java:416)
        at java.base/java.util.jar.Manifest.read(Manifest.java:287)
        at java.base/java.util.jar.Manifest.<init>(Manifest.java:101)
        at java.base/java.util.jar.Manifest.<init>(Manifest.java:88)
        at java.base/java.util.jar.JarFile.getManifestFromReference(JarFile.java:431)
        at java.base/java.util.jar.JarFile.getManifest(JarFile.java:405)
        at java.base/jdk.internal.loader.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:853)
        at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:848)
        at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
        at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:94)

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

PR Comment: https://git.openjdk.org/jdk/pull/15852#issuecomment-1729099298


More information about the hotspot-gc-dev mailing list