[runtime] Fix allocation size calculation for strings in 64-bit builds.
commitb0cff959e47c3d9955e6675364bf71404cd74bac
authorAlexis Christoforides <alexis@thenull.net>
Fri, 3 Oct 2014 04:04:13 +0000 (2 21:04 -0700)
committerAlexis Christoforides <alexis@thenull.net>
Fri, 3 Oct 2014 04:04:39 +0000 (2 21:04 -0700)
tree1ea2ffd21543a6ed373abdb1787291a635da88f0
parent6e27f984ab97136f16f5d945ba28ad207ed95c4c
[runtime] Fix allocation size calculation for strings in 64-bit builds.
Depending on alignment and packing, part of the string might be inside the MonoString struct boundaries. This e.g. shows up on 64-bit builds of mono where we were allocating 4 extra bytes per string.
mono/metadata/boehm-gc.c
mono/metadata/object.c
mono/metadata/sgen-alloc.c
mono/metadata/sgen-gc.h
mono/metadata/string-icalls.c