[mono] Register static rgctx trampolines in the JIT info tables. (#89142)
authorZoltan Varga <vargaz@gmail.com>
Wed, 19 Jul 2023 05:41:17 +0000 (01:41 -0400)
committerGitHub <noreply@github.com>
Wed, 19 Jul 2023 05:41:17 +0000 (01:41 -0400)
commit00b62a561324b612060e74b03ffecedd9418dbc8
tree4f9aa03d4c71849a7cf17563a31e6bf59875954b
parent8c27281ca6ee0528be7d255ecd78e522582f5a0f
[mono] Register static rgctx trampolines in the JIT info tables. (#89142)

mini_init_delegate () needs to do a reverse lookup from address
to method, and its possible for the address to be a static rgctx
trampoline if the address is the result of mono_ldftn ().

Fixes https://github.com/dotnet/runtime/issues/89076.
src/mono/mono/mini/jit-icalls.c
src/mono/mono/mini/mini-runtime.c
src/mono/mono/mini/mini-trampolines.c