The bug happens with both x86 and SPARC:
$ JAVA_OPTS="-client -Xcomp" ant -v run-junit-precompiled
...
[junit] junit.framework.TestListener: startTest(testXML.rb)
[junit] # To suppress the following error report, specify this argument
[junit] # after -XX: or in .hotspotrc: SuppressErrorAt=/c1_Instruction.hpp:135
[junit] ==============================================================================
[junit] Unexpected Error
[junit] ------------------------------------------------------------------------------
[junit] Internal Error at c1_Instruction.hpp:135, pid=14765, tid=7
[junit] assert(0 <= i && i < length()) failed: index out of bounds
[junit]
[junit] Do you want to debug the problem?
[junit]
[junit] To debug, run 'dbx - 14765'; then switch to thread 7
[junit] Enter 'yes' to launch dbx automatically (PATH must include dbx)
[junit] Otherwise, press RETURN to abort...
[junit] ==============================================================================