Force 16-byte alignment?
843811Mar 23 2005 — edited Mar 24 2005Hello,
Is there any way to force the JVM (presumably through the use of some -XX option) to align memory on 16-byte boundaries?
I am using x86 hardware features (via JNI) that require 16-byte alignment, and accessing large (Java created) byte arrays forces me to copy the array (in native code) if it doesn't happen to be 16-byte aligned, causing noticeable performance degradation.
Thanks for any ideas....