Turning off out-of-bounds to increase speed?
807569Jul 22 2006 — edited Jul 29 2006There are many "undocumented" command line options for the java.exe VM, and I am wondering if one exists which forces the VM to ignore out-of-bounds checks?
I know Hotspot tries to do this automatically, but I do not trust it, and I believe a cold "NO!" to these kinds of tests could speed up code for applications that are tested to be bounds-safe. My programs do a massive amount of time critical array manipulations.
Before I used GCJ which has the option to turn off bounds checking, and my programs benefited a lot from this. But compiling to native code has proven to be a big pain when using third party APIs.
By the way, my software only need to run under Windows, and I am targeting Java 1.6.
In general, I also would like to know if you know if there is any compiled list of ALL command line options for the above JVM configuration?
Thanks :)