United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7194662 JSR 292: PermuteArgsTest times out in nightly test runs
JDK-7194662 : JSR 292: PermuteArgsTest times out in nightly test runs

Details
Type:
Bug
Submit Date:
2012-08-28
Status:
Resolved
Updated Date:
2014-02-10
Project Name:
JDK
Resolved Date:
2012-08-28
Component:
core-libs
OS:
generic
Sub-Component:
java.lang.invoke
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs23,7
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
The following test times out during nightly test runs:

java/lang/invoke/PermuteArgsTest.java

                                    

Comments
SUGGESTED FIX

The suggested quick fix is to add -XX:-VerifyDependencies to the failing test.

The real fix would require to look into the dependency verification code and eliminate duplicate verifications of the same dependencies.  This is especially important when the code cache contains a lot of nmethods.  I will file another bug for that.
                                     
2012-08-28
EVALUATION

The reason for the timeouts with debug builds is the flag VerifyDependencies which is on by default in debug builds:

$ java -showversion -XX:+VerifyDependencies -cp /java/devtools/share/junit/latest/junit.jar:. -ea -esa -DPermuteArgsTest.MAX_ARITY=8 org.junit.runner.JUnitCore PermuteArgsTest
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b53)
Java HotSpot(TM) Server VM (build 24.0-b22-internal-fastdebug, mixed mode)

JUnit version 4.4
.ran a total of 2756 test cases

Time: 79.037

OK (1 test)

###@###.###:~$ java -showversion -XX:-VerifyDependencies -cp /java/devtools/share/junit/latest/junit.jar:. -ea -esa -DPermuteArgsTest.MAX_ARITY=8 org.junit.runner.JUnitCore PermuteArgsTest
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b53)
Java HotSpot(TM) Server VM (build 24.0-b22-internal-fastdebug, mixed mode)

JUnit version 4.4
.ran a total of 2756 test cases

Time: 3.803

OK (1 test)
                                     
2012-08-28
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/jdk/rev/59231f2cb6e1
                                     
2012-08-28



Hardware and Software, Engineered to Work Together