JDK-6942092 : Loader-constraint test is failing against 1.5.0u24b06-hsx
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 1.3.1_29,5.0u24-rev,6u22m,7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris
  • CPU: generic,sparc
  • Submitted: 2010-04-08
  • Updated: 2014-01-13
  • Resolved: 2010-06-24
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.
Other JDK 6 JDK 7 Other
5.0u25,hs19Fixed 6u21pFixed 7Fixed hs19Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
See Comments

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/883a82d6d41d
09-10-2010

EVALUATION http://hg.openjdk.java.net/hsx/hsx19/baseline/rev/f6b107f3629a
08-10-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/883a82d6d41d
15-09-2010

SUGGESTED FIX I'll propose changing the testcase to: egrep "violates loader constraints|loader constraint violation" test.out
01-06-2010

EVALUATION The test.out in his failure directoy: ( http://jqa.ireland/export/home0/results/1.5.0_24/Build02/Regression/5u24-b02-hsx-solaris10sun4u/issue6626217/failed/ ) ..actually looks like a pass: it ends with an exception being thrown (rather than a crash): >>Loader2>> Returning clazz sun.misc.Launcher$AppClassLoader@14b7453:bug_21227 Exception in thread "main" java.lang.LinkageError: loader constraint violation: loader (instance of Loader2) previously initiated loading for a different type with name "many_loader" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.lang.ClassLoader.defineClass(ClassLoader.java:466) at Loader2.findClass2(Loader2.java:21) at Loader2.loadClass(Loader2.java:37) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at from_loader2.gen(from_loader2.java:5) at many_loader.make(many_loader.java:21) at bug_21227.main(bug_21227.java:26) The test sript Test6626217.sh ends with: ${JAVA} ${BIT_FLAG} -Xverify -Xint -cp . bug_21227 >test.out 2>&1 grep "violates loader constraints" test.out exit $? ~ ~ 5.0-rev-latest uses the phrase "Class %s violates loader constraints" But hsx16 uses the phrase: "loader constraint violation: " plus more detail. So the test for 5.0 doesn't recognise the error thrown by hsx16.
01-06-2010