I'd like to allocate a direct byte buffer(dbb) w/ a little padding and then pass to a JNI function where I'll perform some SSE/AVX operations.  I need to have the data aligned on 16 byte boundaries.  Suppose my dbb array address starts @ 1 and has a gazillion elements.  After alignment, I'll start reading/writing @ location 16.  But suppose GC moved the dbb to location 2, now, element 1 starts @ 17.  This will cause problems for me.  Do dbb's get moved?

 

Thanks,

 

M

FacebookTwitterLinkedin
Pin It
Joomla Tutorials for Beginners