Closed yowl closed 4 years ago
Think I may have the same bug in the other places where g_pFreeObjectEEType
is used.
I've changed the other places where this occurs. I'm not convinced this is the whole story, firstly because I'm still seeing objects aligned at the 2 byte boundary when the GC runs which should be possible, right? Also I can't get any class to go through RhpNewFastAlign8.
This PR fixes a bug when allocating arrays that required 8 byte alignment, if the slow path was chosen the padded size, i.e. with the extra 12 byte object, was being passed to
RhpGcAlloc
(andRhpPublishObject
). This change passes the size of the actual new array without the padding.Fixes #8317