Hacker News new | ask | show | jobs
by jcdavis 3636 days ago
The header is only 12 bytes with compressedOops (which most people use), but the long is aligned on an 8 byte boundary so the advantage is wasted here.
1 comments

And even if the long wasn't on an aligned boundary, the object itself is. So you either have padding at the start or end of the object.