Skip to Main Content

Java HotSpot Virtual Machine

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!

Force 16-byte alignment?

843811Mar 23 2005 — edited Mar 24 2005
Hello,

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....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 21 2005
Added on Mar 23 2005
2 comments
252 views