Description
1) running in dynamic CDS mode:
Observed in tier4 testing on linux, Windows, and Mac:
java.lang.RuntimeException: 'Buffer-space to target-space delta' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:189)
at jdk.test.lib.cds.CDSTestUtils.checkDump(CDSTestUtils.java:274)
at jdk.test.lib.cds.CDSTestUtils.createArchiveAndCheck(CDSTestUtils.java:297)
at LambdaEagerInit.createArchiveWithEagerInitializationEnabled(LambdaEagerInit.java:79)
at LambdaEagerInit.main(LambdaEagerInit.java:49)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:831)
2) running in non-dynamic CDS mode:
stderr: [Exception in thread "main" java.lang.NoClassDefFoundError: jdk/test/lib/Asserts
at LambdaEagerInitTest.nonCapturingLambda(LambdaEagerInitTest.java:52)
at LambdaEagerInitTest.main(LambdaEagerInitTest.java:83)
Caused by: java.lang.ClassNotFoundException: jdk.test.lib.Asserts
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
... 2 more
Observed in tier4 testing on linux, Windows, and Mac:
java.lang.RuntimeException: 'Buffer-space to target-space delta' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:189)
at jdk.test.lib.cds.CDSTestUtils.checkDump(CDSTestUtils.java:274)
at jdk.test.lib.cds.CDSTestUtils.createArchiveAndCheck(CDSTestUtils.java:297)
at LambdaEagerInit.createArchiveWithEagerInitializationEnabled(LambdaEagerInit.java:79)
at LambdaEagerInit.main(LambdaEagerInit.java:49)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:831)
2) running in non-dynamic CDS mode:
stderr: [Exception in thread "main" java.lang.NoClassDefFoundError: jdk/test/lib/Asserts
at LambdaEagerInitTest.nonCapturingLambda(LambdaEagerInitTest.java:52)
at LambdaEagerInitTest.main(LambdaEagerInitTest.java:83)
Caused by: java.lang.ClassNotFoundException: jdk.test.lib.Asserts
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
... 2 more
Attachments
Issue Links
- relates to
-
JDK-8257241 CDS should not handle disableEagerInitialization for archived lambda proxy classes
- Resolved