[aot] Fix some races if GOT entries are already set.
authorZoltan Varga <vargaz@gmail.com>
Thu, 30 Jan 2020 17:34:35 +0000 (12:34 -0500)
committerZoltan Varga <vargaz@gmail.com>
Thu, 30 Jan 2020 17:34:35 +0000 (12:34 -0500)
commitb6590fcd1d958b87b0025f7710fbb00d9af85e23
treeef9cb6cdde8154ebf2aa72a7ac33e48a6b4a5c4a
parente2325f35a3d92e435884326b46143e8711a261ca
[aot] Fix some races if GOT entries are already set.

decode_patch_info () would not decode patches if their corresponding GOT entry
was already set, causing half initialized MonoJumpInfo entries to be returned
to callers. Set the type of the MonoJumpInfo entry to MONO_PATCH_INFO_NONE
in these cases, and have the callers handle it.
src/mono/mono/mini/aot-runtime.c