Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Turning off out-of-bounds to increase speed?

807569Jul 22 2006 — edited Jul 29 2006
There 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 :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2006
Added on Jul 22 2006
41 comments
799 views