JDK-6712185 : java/util/concurrent/Executors/AutoShutdown.java fails on slow or busy systems
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.concurrent
  • Affected Version: hs13
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-06-09
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
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 7
7 b121Fixed
Related Reports
Relates :  
Description
The following test 
java/util/concurrent/Executors/AutoShutdown.java 
fails in -Xcomp mode with an assertion in hs13b02 which is going to be used in 6u6p:

It does not fail without -Xcomp

----------System.err:(30/1597)----------
java version "1.6.0-p"
Java(TM) SE Runtime Environment (build 1.6.0-p-b00)
Java HotSpot(TM) Server VM (build 13.0-b02-2008-06-07-034521.et151817.hs13_b02-fastdebug, compiled mode)

java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1206)
	at AutoShutdown.fail(AutoShutdown.java:33)
	at AutoShutdown.fail(AutoShutdown.java:34)
	at AutoShutdown.equal(AutoShutdown.java:38)
	at AutoShutdown.realMain(AutoShutdown.java:27)
	at AutoShutdown.main(AutoShutdown.java:40)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)
java.lang.AssertionError: Some tests failed
	at AutoShutdown.main(AutoShutdown.java:42)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:619)

JavaTest Message: Test threw exception: java.lang.AssertionError: Some tests failed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.AssertionError: Some tests failed
result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed


test result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed
Same failure during JDK6u12 b01 Hotspot 11.2 b01 PIT
via 
/net/sqenfs-1.sfbay/export1/comp/vm/jdk/hsx/11.2/pit/b01/jdk6u12b02/fastdebug

Comments
EVALUATION The test has been seen to fail on different OS/archs with the product JDK. There are timing issues in the test that need to be resolved. Changeset: d5489d652f6f Author: dl Date: 2010-11-19 10:43 +0000 URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/d5489d652f6f 6712185: java/util/concurrent/Executors/AutoShutdown.java fails on slow or busy systems Reviewed-by: chegar, alanb ! test/ProblemList.txt ! test/java/util/concurrent/Executors/AutoShutdown.java
19-11-2010

EVALUATION The timeouts used to make this test work can fail on slow machines when run with -Xcomp.
10-06-2008