On Fri, Jan 11, 2019 at 3:16 PM Ian Lance Taylor wrote:
>
> This patch by Cherry Zhang changes the Go frontend to pad structs
> ending with a zero-sized field. For a struct with zero-sized last
> field, the address of the field falls out of the object boundary,
> which confuses the garbage collec
This patch by Cherry Zhang changes the Go frontend to pad structs
ending with a zero-sized field. For a struct with zero-sized last
field, the address of the field falls out of the object boundary,
which confuses the garbage collector. Pad an extra byte in this case.
Bootstrapped and ran Go tests