JDK-8166374 : compiler/loopopts/UseCountedLoopSafepointsTest.java fails with "Safepoint not found"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-09-20
  • Updated: 2017-02-09
  • Resolved: 2017-01-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10 JDK 9
10Fixed 9 b156Fixed
Related Reports
Duplicate :  
Relates :  
Description
Failed in PIT on all platforms.

Command line: [java  -XX:MaxRAMFraction=32 -Xcomp -server -XX:+CreateCoredumpOnCrash -XX:+IgnoreUnrecognizedVMOptions -XX:ReservedCodeCacheSize=256M -Xcomp -XX:+UnlockDiagnosticVMOptions -Xbootclasspath/a:. -XX:+UseCountedLoopSafepoints -XX:+WhiteBoxAPI -XX:-Inline -Xbatch -XX:+PrintIdeal -XX:LoopUnrollLimit=0 -XX:CompileOnly=compiler.loopopts.UseCountedLoopSafepoints::testMethod compiler.loopopts.UseCountedLoopSafepoints ]
----------System.err:(17/1243)----------
java.lang.RuntimeException: Safepoint not found: expected true to equal false
	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.loopopts.UseCountedLoopSafepointsTest.check(UseCountedLoopSafepointsTest.java:92)
	at compiler.loopopts.UseCountedLoopSafepointsTest.main(UseCountedLoopSafepointsTest.java:54)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:535)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-internal/Thread.java:843)
Comments
RULE "compiler/loopopts/UseCountedLoopSafepointsTest.java" Exception java.lang.RuntimeException: Expected to get exit value of [0]
20-01-2017

Test uses PrintIdeal option which is declared as "notproduct", so, test should skip execution on product build
10-01-2017

This looks like a testbug introduced by the fix for JDK-8146096 not being able to find the Safepoint node. [~dpochepk], could you please have a look? Please assign it back to me if it turns out to be a compiler problem.
20-09-2016