[netcore] Fix offsets generation when cross compiling
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 25 Oct 2019 18:32:03 +0000 (20:32 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 28 Oct 2019 12:57:17 +0000 (13:57 +0100)
commitf56fb983cf42913346c5a58aa04073a883f25894
tree7d220cb59f71721c5f7540943b1b2fe1c4d17a59
parentd6b708106d852c8e2803fff727fe98ec5f7a85f4
[netcore] Fix offsets generation when cross compiling

The offsets-tool.py uses some magic to map `typename` to `<underscore>typename` for looking up runtime types.
This caused issues on netcore because we aliased it to a different name.

To fix this let's keep the `_MonoInternalThread` name instead and just fix the one location where `_MonoThread` is used.

Commit migrated from https://github.com/mono/mono/commit/450d4746849d228c85748d9ab4ef68f90ac0c7f2
src/mono/mono/metadata/appdomain.c
src/mono/mono/metadata/object-internals.h
src/mono/mono/metadata/object.h
src/mono/mono/mini/mini-runtime.c
src/mono/mono/utils/mono-forward-internal.h