Reduce size of internal MonoErrors by 3 pointers, while trying to be compatible with...
commitcf0ce4f55ad92529bf969bef1cbf5cc6a502fdef
authorJay Krell <jaykrell@microsoft.com>
Mon, 19 Aug 2019 09:20:37 +0000 (19 02:20 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 19 Aug 2019 09:20:37 +0000 (19 11:20 +0200)
tree27992f773735567ac5ec458cbf9e04cb73d625c4
parent047c7d35faa441e9d73364b681e5826a7c00051f
Reduce size of internal MonoErrors by 3 pointers, while trying to be compatible with old size.(#16218)

There is an incompatibility here.

If Mono hands off an InternalError and it is accessed
like an ExternalError, like memset(sizeof()), bad.

Hopefully nobody does that.

There is also compatability -- embedders can continue to embed MonoError
in their own data. Its size and hopefully alignment is unchanged.
mono/metadata/object-offsets.h
mono/mini/decompose.c
mono/unit-tests/test-mono-callspec.c
mono/utils/mono-error-internals.h
mono/utils/mono-error.c
mono/utils/mono-error.h
tools/offsets-tool-py/offsets-tool.py