Check MultiCoreJit code cache before trying to jit method in mcj thread
authorGleb Balykov <g.balykov@samsung.com>
Tue, 5 Apr 2022 10:03:17 +0000 (13:03 +0300)
committerGleb Balykov <g.balykov@samsung.com>
Tue, 27 Sep 2022 12:50:22 +0000 (15:50 +0300)
commit62947562bb27e14d7489be004590f8f7c1ca0e76
treed8593126b9dc0e99b6014e065d3b0b64cd4448ba
parent9f9503d0059453023c74fce679e07d3d165d314a
Check MultiCoreJit code cache before trying to jit method in mcj thread

This is needed when multiple profiles are played and same methods exist in them.
Without this change, if method was not yet requested in main thread,
it will be jitted as many times in mcj thread as it appears in all profiles.
src/coreclr/vm/multicorejit.h
src/coreclr/vm/multicorejitplayer.cpp