Reduce size of internal MonoErrors by 3 pointers, while trying to be compatible with...
authorJay Krell <jaykrell@microsoft.com>
Mon, 19 Aug 2019 09:20:37 +0000 (02:20 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 19 Aug 2019 09:20:37 +0000 (11:20 +0200)
commit89aac2aace55bb7a8fdab9b668eafac611cb6797
tree588213069e42bd88775c013bff71e1e9171a435b
parent6a9e1974162267e06115c3bcfab414f632b51796
Reduce size of internal MonoErrors by 3 pointers, while trying to be compatible with old size.(mono/mono#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.

Commit migrated from https://github.com/mono/mono/commit/cf0ce4f55ad92529bf969bef1cbf5cc6a502fdef
src/mono/mono/metadata/object-offsets.h
src/mono/mono/mini/decompose.c
src/mono/mono/unit-tests/test-mono-callspec.c
src/mono/mono/utils/mono-error-internals.h
src/mono/mono/utils/mono-error.c
src/mono/mono/utils/mono-error.h