From dfd6ab2348b4b151bb90d3bd7deb6a7304bbafac Mon Sep 17 00:00:00 2001 From: Pat Gavlin Date: Tue, 23 Feb 2016 13:53:32 -0800 Subject: Expose a hosting interface for the JIT. This is the first significant step towards removing the JIT's dependence on utilcode. This change introduces a new interface, `ICorJitHost`, that allows functionality that would usually be provided by the OS to be overridden by the program that is hosting the JIT. At the moment, this is limited to memory allocation and configuration value (e.g. environment variable) access. If the JIT exports a function named `jitStartup`, an instance of the `ICorJitHost` must be provided via that function before the first call to `getJit`. The VM and other implementors of the JIT interface have been updated accordingly. Most implementors should use the common implementation of `ICorJitHost` (cleverly named `JitHost`) in utilcode which respects the CLR's hosting policy. Note that this change does not update RyuJIT (or any other JITs) to use any of the functionality exposed by `ICorJitHost`; that work is left for future changes. [tfs-changeset: 1578176] --- src/jit/protojit/protojit.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/jit/protojit') diff --git a/src/jit/protojit/protojit.def b/src/jit/protojit/protojit.def index 73a6ba1ae1..1603af74ca 100644 --- a/src/jit/protojit/protojit.def +++ b/src/jit/protojit/protojit.def @@ -3,4 +3,5 @@ ; See the LICENSE file in the project root for more information. EXPORTS getJit - sxsJitStartup \ No newline at end of file + jitStartup + sxsJitStartup -- cgit v1.2.3