JIT into scratch buffer (#53173)
authorJan Vorlicek <jan.vorlicek@volny.cz>
Wed, 26 May 2021 15:19:57 +0000 (17:19 +0200)
committerGitHub <noreply@github.com>
Wed, 26 May 2021 15:19:57 +0000 (17:19 +0200)
commitdc5a1c8f221ff3c38d61021e517719ac1aa24356
treea5f279ea41e3f2af5196c5f7dfad6d5f369660af
parentb0f0868d3d01fe0293ef756ffe65869409f24f8d
JIT into scratch buffer (#53173)

* Generate JITted code into a scratch buffer

Copy it to the final location after the JITing is done.

* Put also the code header and real code header into the buffer

* Disable the scratch buffer usage until we enable W^X
src/coreclr/vm/codeman.cpp
src/coreclr/vm/codeman.h
src/coreclr/vm/jitinterface.cpp
src/coreclr/vm/jitinterface.h