Value type alignment in array ?

Remi Forax forax at univ-mlv.fr
Mon Jul 2 06:54:47 UTC 2018


Let say i've a 64 bits VM with compressed oops,
as far as i know, a heap allocate instance of a class will be aligned to 64bits because it can contain a long or a double that need to be 64 bits aligned,
now let suppose i declare a value type with no long or double, if the value type is allocated in the heap it will be aligned to 64 bits but if the value type is a cell of an array, in that case will it be 32 bits aligned ?

regards,
Rémi


More information about the valhalla-dev mailing list