Other |
---|
tbdUnresolved |
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
When running a replay file which was dumped with the flag -XX:-UseCompressedClassPointers, replay compilation fails regardless if we specify -XX:-UseCompressedClassPointers or not. The error message is: "tag mismatch: wrong class files?" A workaround for this problem is to additionally specify -XX:+ReplayIgnoreInitErrors. This still allows to replay the compilation. The problem can be reproduced with the attached WrongTag.java file: $ java XX:CompileCommand=DumpReplay,WrongTag::test -Xbatch -XX:-TieredCompilation -XX:CompileOnly=WrongTag::* -XX:-UseCompressedClassPointers WrongTag.java $ javac WrongTag.java // Do not run the first command with the class file only $ java -XX:+ReplayCompiles -XX:ReplayDataFile=replay.log // replay.log: Insert name of actual replay file Original report: make run-test TEST=compiler/ciReplay TEST_VM_OPTS="-XX:-UseCompressedClassPointers" some tests are failing like this: java.lang.RuntimeException: Unexpected exit code for positive case: [-XX:-TieredCompilation]: expected 1 to equal 0 at jdk.test.lib.Asserts.fail(Asserts.java:594) at jdk.test.lib.Asserts.assertEquals(Asserts.java:205) at jdk.test.lib.Asserts.assertEQ(Asserts.java:178) at compiler.ciReplay.CiReplayBase.positiveTest(CiReplayBase.java:271) at compiler.ciReplay.TestLambdas.testAction(TestLambdas.java:46) at compiler.ciReplay.CiReplayBase.runTest(CiReplayBase.java:131) at compiler.ciReplay.TestLambdas.main(TestLambdas.java:41) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1570) The failure does not seem to be specific to -UseCompressedClassPointers. In project Lilliput we also observe the same failures when running with +UseCompactObjectHeaders. When I hardcode UseCompactObjectHeaders to be on by default, then it only fails with -UseCompactObjectHeaders. This seems to indicate to me that this is a test-bug, but I am not sure,
|