JDK-8245650 : cds/DeterministicDump.java still fails after JDK-8244536
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86_64
  • Submitted: 2020-05-22
  • Updated: 2020-05-22
  • Resolved: 2020-05-22
Related Reports
Duplicate :  
Relates :  
Description
The following test failed in an Adhoc Mach5 job:

runtime/cds/DeterministicDump.java

Here's a snippet from the log file: 

----------System.err:(14/862)----------
java.lang.RuntimeException: File content different at byte #4, b0 = 43, b1 = -29
	at DeterministicDump.compare(DeterministicDump.java:123)
	at DeterministicDump.doTest(DeterministicDump.java:74)
	at DeterministicDump.main(DeterministicDump.java:47)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: File content different at byte #4, b0 = 43, b1 = -29


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: File content different at byte #4, b0 = 43, b1 = -29

Comments
[~iklam] - sorry for the dup. I didn't notice JDK-8245335 when I searched for runtime/cds/DeterministicDump.java.
22-05-2020

The log file contains this: =========== Command line: [..../bin/java .... -Xmx128M -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:SharedArchiveFile=SharedArchiveFile6.jsa -Xshare:dump -Xlog:cds=debug -XX:MetaspaceSize=1M ] .... ----------System.err:(14/862)---------- java.lang.RuntimeException: File content different at byte #4, b0 = 43, b1 = -29 =========== The use of -XX:MetaspaceSize=1M has been removed in JDK-8245335: [TESTBUG] DeterministicDump.java fails with release JVM https://hg.openjdk.java.net/jdk/jdk/rev/0702191777c9 Closing this bug as a duplicate of JDK-8245335
22-05-2020