WORK AROUND
You can create a .hotspot_compiler file in the directory where you run your program containing the line
exclude java/lang/String compareTo
This will keep us from compiling this method. You'll get extra output as well though, looking kind of like this.
smite ~ % cat .hotspot_compiler
exclude java/lang/String compareTo
smite ~ % /export/ws/hopper/sparc/jdk1.4/bin/java stringcompare
CompilerOracle: exclude java/lang/String compareTo
### Excluding compile: java.lang.String::compareTo
You may also be able to tweak your initial heap size using -Xms to perturb the location of the string which happens to end up at the end of the heap.
###@###.### 2002-07-16