United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6956836 : java/util/concurrent/Semaphore/RacingReleases.java fails

Details
Type:
Bug
Submit Date:
2010-05-28
Status:
Closed
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2010-06-01
Component:
core-libs
OS:
generic
Sub-Component:
java.util.concurrent
CPU:
generic
Priority:
P3
Resolution:
Not an Issue
Affected Versions:
6u21
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
Test 

java/util/concurrent/Semaphore/RacingReleases.java

fails with following message:

java.lang.Error: Semaphore stuck: permits 1, thread waiting true

	at RacingReleases.test(RacingReleases.java:92)
	at RacingReleases.main(RacingReleases.java:114)
	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)

                                    

Comments
EVALUATION

This is a testing bug. The HS17 b15 VM is part of 6u21 and is being tested as a 6u21 VM, but it actually got dropped into a 6u20 JDK.

HS_17-b15 PIT results for jdk6u21b05: 2010-05-21

JDK: Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
VM: Java HotSpot(TM) Client VM (build 17.0-b15-201005202359.et151817.hs17b15, mixed mode, sharing)

If you run the test against the promoted 6u21b05 binaries it passes fine.

The fix for 6801020, for which the failing test is the regression test case, is only in 6u21 (and a bunch of revs) and not 6u20.

I believe this is due to a JPRT limitation, because 6u21 is not yet supported there. But it is a concern that we're testing the VM in the wrong JDK.
                                     
2010-05-31



Hardware and Software, Engineered to Work Together