United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6887948 test/gc/6845368/bigobj.java fails due to timeout
6887948 : test/gc/6845368/bigobj.java fails due to timeout

Details
Type:
Bug
Submit Date:
2009-10-02
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2009-11-11
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs16
Fixed Versions:
hs17

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
Partial jtr log from a run on a slow machine:

#Test Results (version 2)
#Tue Sep 29 08:34:12 EDT 2009
#checksum:5f8e64b2fcd7dfcf
#-----testdescription-----
$file=/export/local/common/testbase/jtreg/HS_REGRESSION/test/gc/6845368/bigobj.java
$root=/export/local/common/testbase/jtreg/HS_REGRESSION/test
author=John Coomes
keywords=bug6845368 othervm
run=USER_SPECIFIED main/othervm -Xmx64m bigobj\n
source=bigobj.java
title=ensure gc updates references > 64K bytes from the start of the obj

#-----environment-----

#-----testresult-----
description=file:/export/local/common/testbase/jtreg/HS_REGRESSION/test/gc/6845368/bigobj.java
end=Tue Sep 29 08:34:12 EDT 2009
environment=regtest
execStatus=Error. Can't load test: java.lang.ClassNotFoundException: bigobj
javatestOS=SunOS 5.10 (sparc)
javatestVersion=4.1.3a
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile main
start=Tue Sep 29 08:27:46 EDT 2009
test=gc/6845368/bigobj.java
work=/export/local/22053.JDK7.NIGHTLY.VM+solaris-sparc_server_comp_HS_REGRESSION/results/workDir/gc/6845368

#section:script_messages
----------messages:(5/291)----------
JDK under test: (/export/local/common/jdk/baseline/solaris-sparc)
java version "1.7.0-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.7.0-ea-fastdebug-b72)
OpenJDK Server VM (build 17.0-b01-2009-09-29-001524.cf231476.6886353-fastdebug, mixed mode)
Timeout signalled after 360 seconds

#section:build
----------messages:(3/92)----------
command: build bigobj
reason: Named class compiled on demand
elapsed time (seconds): 360.08
result: Passed. Build successful

#section:compile
----------messages:(3/177)----------
command: compile /export/local/common/testbase/jtreg/HS_REGRESSION/test/gc/6845368/bigobj.java
reason: .class file out of date or does not exist
elapsed time (seconds): 360.013
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Error. Compilation failed
The name of test which fails:
gc/6845368/bigobj.java

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/8afee153274a
                                     
2009-10-05
EVALUATION

The time it takes to compile the test program with javac exceeds the default timeout on some machines.  bigobj.java contains a class with almost 64K fields, which exposes a corner case in javac performance.  Increase the timeout to avoid the failure.
                                     
2009-10-02
SUGGESTED FIX

diff -r 1af62b6ca0f9 -r 947b1de8e798 test/gc/6845368/bigobj.java
--- a/test/gc/6845368/bigobj.java	Fri Sep 25 04:39:54 2009 -0700
+++ b/test/gc/6845368/bigobj.java	Thu Oct 01 18:58:42 2009 -0700
@@ -3,7 +3,7 @@
    @bug 6845368
    @summary ensure gc updates references > 64K bytes from the start of the obj
    @author John Coomes
-   @run main/othervm -Xmx64m bigobj
+   @run main/othervm/timeout=720 -Xmx64m bigobj
 */
 
 // Allocate an object with a block of reference fields that starts more
                                     
2009-10-02



Hardware and Software, Engineered to Work Together