Fix zap and ready to run disabling (#14389)
authorJan Vorlicek <janvorli@microsoft.com>
Mon, 9 Oct 2017 20:07:54 +0000 (22:07 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2017 20:07:54 +0000 (22:07 +0200)
commit0a8bd5554a736de337ca6c24eba3de3ec0decfd1
tree6ecb79d3e7f64233d52dcebf5cd0ec239479fc6e
parentee8da341641e69acd232cc5d873b05605671a61e
Fix zap and ready to run disabling (#14389)

* Fix zap and ready to run disabling

While the COMPlus_ZapDisable and COMPlus_ReadyToRun config settings
can be used to disable using crossgened / ready to run images, loading
IL from such images fails.
This change foxes that.

* Reflect PR feedback

Remove ReadyToRunInfo::IsReadyToRunEnabled from Module::Initialize again
and move the same check in the ReadyToRunInfo::Initialize before we
start checking the PE file properties.
src/vm/peimagelayout.cpp
src/vm/readytoruninfo.cpp