Выравнивание распределения памяти Java

I know this is a weird question to ask in Java, but is there a way to let Java dynamic memory allocation be aligned with some alignment constraints? For example, is it possible to dynamically allocate objects that are aligned with the page size?

The reason I want to do this is because I'm going to access the Java object from native code through JNI interface, and the native code library requires the object to be aligned.

Thanks.

16
задан Neo Hpcer 11 March 2011 в 01:46
поделиться