Fix assertion failure when running some composite CoreCLR tests (#33503)
authorTomáš Rylek <trylek@microsoft.com>
Thu, 12 Mar 2020 09:37:22 +0000 (10:37 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2020 09:37:22 +0000 (10:37 +0100)
commit0eb33d5867e4fdc5f863ba6da5d74ad3c0a78109
tree0d8b545e79c4ea6dccc4c2f4be7ac9cc283324e9
parent7f52377bbcbb90e7b104e97505866320accae060
Fix assertion failure when running some composite CoreCLR tests (#33503)

In composite testing, ReadyToRunInfo::GetImage() returns the
composite image layout (NativeImageLayout) for which
PEDecoder::GetReadyToRunHeader doesn't work (we decided we don't
want to modify the general PEDecoder logic). A simple fix is not
to go through GetImage() and expose the header on the R2R info
directly instead.

Thanks

Tomas
src/coreclr/src/vm/codeman.cpp
src/coreclr/src/vm/readytoruninfo.h