Refactor Utilcode's IAllocators.
authorPat Gavlin <pagavlin@microsoft.com>
Thu, 3 Mar 2016 19:51:59 +0000 (11:51 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Thu, 3 Mar 2016 19:51:59 +0000 (11:51 -0800)
commit9c9b851c04ea644d7d9f914036e50de6e1a24fcb
tree1fbd9be166998b77904ec2386ed8df59f1c49da5
parent319ec3fa91c10c1f2053fc271bc2944a54401432
Refactor Utilcode's IAllocators.

- `DefaultAllocator` has been replaced with `HostAllocator` in RyuJIT, which
  uses the JIT hosting interface to allocate and free memory.
- The definition of `DefaultAllocator` has been moved into its own file, as it
  remains in use by the interpreter and the binder.
- `ProcessHeapAllocator` has been moved into JIT32, as that was its only
  remaining user.
- `AllowZeroAllocator`'s static field has been changed to an instance field
  to avoid the need to define storage for the static field in Utilcode.

[tfs-changeset: 1581242]

Commit migrated from https://github.com/dotnet/coreclr/commit/e2df0fdbfaa688de075f020a1bf59e30fffe9fb9
12 files changed:
src/coreclr/src/inc/iallocator.h
src/coreclr/src/inc/simplerhash.inl
src/coreclr/src/jit/CMakeLists.txt
src/coreclr/src/jit/compiler.cpp
src/coreclr/src/jit/ee_il_dll.cpp
src/coreclr/src/jit/ee_il_dll.hpp
src/coreclr/src/jit/emit.cpp
src/coreclr/src/jit/hostallocator.cpp [new file with mode: 0644]
src/coreclr/src/jit/hostallocator.h [new file with mode: 0644]
src/coreclr/src/jit/jit.settings.targets
src/coreclr/src/utilcode/iallocator.cpp
src/coreclr/src/vm/interpreter.cpp