Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2041507 | 1.4.0 | James Mcilree | P1 | Closed | Fixed | beta |
The following tests should thrown OutofMemoryError exception bug, but it thrown with OutOfMemoryError: requested 1310720 bytes while the system has at least 90M of memory and 250M of swap space. It failed when using -Xincgc on jdk1.3.1 on rc1 (b17, b18, b19), but it passed on b16.
Failing Test:
=============
api/java_lang/ref/SoftReference/index.html
JCK :
=====
JCK13a
Test source location:
====================
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_lang/ref/SoftReference/GCEnqueueingTests.java
Platforms:
=============
Solaris Sparc 8/ Intel 8
JDK, switches Info:
===================
java version "1.3.1-rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc1-b19)
Java HotSpot(TM) Client VM (build 1.3.1-rc1-b19, mixed mode)
-Xincgc
jtr file location:
==================
The jtr file is attached too.
file:/net/jtg-s112.eng/export/home/jtg-test/JH_JDK131_b19_JCK13a_xincgc_xfuture/workDir/api/java_lang/ref/SoftReference/index_GCEnqueueing.jtr
How to reproduce:
====================
Run the attached script.
GCEnqueueingTests.ksh -Xincgc
----Script Start ----
#!/bin/ksh
SWITCH=${1+$@}
#This is where you want the JDK to be use.
#Example: JDK=/net/jdk/export/disk8/local.java/jdk1.3.1
JDK=/net/jdk/export/disk8/local.java/jdk1.3.1
#JDK=/re/promoted/jdk/1.3.1/beta/b16/binaries
#JDK=/re/promoted/jdk/1.3.1/rc1/b17/binaries
TESTBASE=/net/jdk/export/disk8/local.java/jck1.3a
JCK=${TESTBASE}/JCK-runtime-13a
executeClass=javasoft.sqe.tests.api.java.lang.ref.SoftReference.GCEnqueueingTests
excludeCmd=
executeClassArgs=
executeTestURL=
executeContextArgs=
case `uname -s` in
SunOS)
ARCH=`uname -p`
case $ARCH in
sparc)
sharedJDK=$JDK/solsparc
;;
i386)
sharedJDK=$JDK/solx86
;;
esac
;;
Linux)
sharedJDK=$JDK/linux-i386
ARCH=linux
;;
esac
CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}
if `echo $SWITCH|grep "\-d64" >/dev/null`; then
LD_LIBRARY_PATH=${JCK}/lib/sparcv9
else
LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
fi
PATH=$JDK/bin:$sharedJDK/bin:$PATH
export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH
echo
java ${SWITCH} -version
echo
java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy -Djava.rmi.activation.port=${executeClass} ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}
----Script end ----
Test output:
=============
Exception in thread "main" java.lang.OutOfMemoryError: requested 1310720 bytes
----------log:(0/0)----------
result: Failed. unexpected exit code: exit code 1
Output form b16:
================
java version "1.3.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b16)
Java HotSpot(TM) Client VM (build 1.3.1beta-b16, mixed mode)
SoftReference2016: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2017: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2018: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2019: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2020: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2021: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2022: Passed. OKAY: OutOfMemoryError was thrown
STATUS:Passed.tests: 7; passed: 7
Machine Info:
=============
sparc
-----
Hostname: jtg-s112
Hostid: 809307a7
Release: 5.8
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.8 Generic 108528-01 April 2000
===========
Status of processor 0 as of: 03/15/01 19:12:06
Processor has been on-line since 03/15/01 18:24:45.
The sparcv9 processor operates at 200 MHz,
and has a sparcv9 floating point processor.
Status of processor 1 as of: 03/15/01 19:12:06
Processor has been on-line since 03/15/01 18:24:49.
The sparcv9 processor operates at 200 MHz,
and has a sparcv9 floating point processor.
===========
Solaris 8 6/00 s28s_u1wos_08 SPARC
Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
Assembled 26 April 2000
intel
-----
Hostname: jtg-i109
Hostid: 1956cfe7
Release: 5.8
Kernel architecture: i86pc
Application architecture: i386
Hardware provider:
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.8 Generic February 2000
===========
Status of processor 0 as of: 03/15/01 19:30:56
Processor has been on-line since 02/28/01 08:06:51.
The i386 processor operates at 613 MHz,
and has an i387 compatible floating point processor.
Status of processor 1 as of: 03/15/01 19:30:56
Processor has been on-line since 02/28/01 08:06:55.
The i386 processor operates at 613 MHz,
and has an i387 compatible floating point processor.
===========
Solaris 8 s28_38shwp2 INTEL
Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
Assembled 21 January 2000
===========
Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto
takwing.cheung@Eng 2001-03-15
Failing Test:
=============
api/java_lang/ref/SoftReference/index.html
JCK :
=====
JCK13a
Test source location:
====================
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_lang/ref/SoftReference/GCEnqueueingTests.java
Platforms:
=============
Solaris Sparc 8/ Intel 8
JDK, switches Info:
===================
java version "1.3.1-rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc1-b19)
Java HotSpot(TM) Client VM (build 1.3.1-rc1-b19, mixed mode)
-Xincgc
jtr file location:
==================
The jtr file is attached too.
file:/net/jtg-s112.eng/export/home/jtg-test/JH_JDK131_b19_JCK13a_xincgc_xfuture/workDir/api/java_lang/ref/SoftReference/index_GCEnqueueing.jtr
How to reproduce:
====================
Run the attached script.
GCEnqueueingTests.ksh -Xincgc
----Script Start ----
#!/bin/ksh
SWITCH=${1+$@}
#This is where you want the JDK to be use.
#Example: JDK=/net/jdk/export/disk8/local.java/jdk1.3.1
JDK=/net/jdk/export/disk8/local.java/jdk1.3.1
#JDK=/re/promoted/jdk/1.3.1/beta/b16/binaries
#JDK=/re/promoted/jdk/1.3.1/rc1/b17/binaries
TESTBASE=/net/jdk/export/disk8/local.java/jck1.3a
JCK=${TESTBASE}/JCK-runtime-13a
executeClass=javasoft.sqe.tests.api.java.lang.ref.SoftReference.GCEnqueueingTests
excludeCmd=
executeClassArgs=
executeTestURL=
executeContextArgs=
case `uname -s` in
SunOS)
ARCH=`uname -p`
case $ARCH in
sparc)
sharedJDK=$JDK/solsparc
;;
i386)
sharedJDK=$JDK/solx86
;;
esac
;;
Linux)
sharedJDK=$JDK/linux-i386
ARCH=linux
;;
esac
CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}
if `echo $SWITCH|grep "\-d64" >/dev/null`; then
LD_LIBRARY_PATH=${JCK}/lib/sparcv9
else
LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
fi
PATH=$JDK/bin:$sharedJDK/bin:$PATH
export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH
echo
java ${SWITCH} -version
echo
java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy -Djava.rmi.activation.port=${executeClass} ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}
----Script end ----
Test output:
=============
Exception in thread "main" java.lang.OutOfMemoryError: requested 1310720 bytes
----------log:(0/0)----------
result: Failed. unexpected exit code: exit code 1
Output form b16:
================
java version "1.3.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b16)
Java HotSpot(TM) Client VM (build 1.3.1beta-b16, mixed mode)
SoftReference2016: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2017: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2018: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2019: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2020: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2021: Passed. OKAY: OutOfMemoryError was thrown
SoftReference2022: Passed. OKAY: OutOfMemoryError was thrown
STATUS:Passed.tests: 7; passed: 7
Machine Info:
=============
sparc
-----
Hostname: jtg-s112
Hostid: 809307a7
Release: 5.8
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.8 Generic 108528-01 April 2000
===========
Status of processor 0 as of: 03/15/01 19:12:06
Processor has been on-line since 03/15/01 18:24:45.
The sparcv9 processor operates at 200 MHz,
and has a sparcv9 floating point processor.
Status of processor 1 as of: 03/15/01 19:12:06
Processor has been on-line since 03/15/01 18:24:49.
The sparcv9 processor operates at 200 MHz,
and has a sparcv9 floating point processor.
===========
Solaris 8 6/00 s28s_u1wos_08 SPARC
Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
Assembled 26 April 2000
intel
-----
Hostname: jtg-i109
Hostid: 1956cfe7
Release: 5.8
Kernel architecture: i86pc
Application architecture: i386
Hardware provider:
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.8 Generic February 2000
===========
Status of processor 0 as of: 03/15/01 19:30:56
Processor has been on-line since 02/28/01 08:06:51.
The i386 processor operates at 613 MHz,
and has an i387 compatible floating point processor.
Status of processor 1 as of: 03/15/01 19:30:56
Processor has been on-line since 02/28/01 08:06:55.
The i386 processor operates at 613 MHz,
and has an i387 compatible floating point processor.
===========
Solaris 8 s28_38shwp2 INTEL
Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
Assembled 21 January 2000
===========
Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto
takwing.cheung@Eng 2001-03-15
- backported by
-
JDK-2041507 JCK13a -Xincgc api/java_lang/ref/SoftReference/index.html
-
- Closed
-