diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2016-03-03 11:51:59 -0800 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2016-03-03 11:51:59 -0800 |
commit | e2df0fdbfaa688de075f020a1bf59e30fffe9fb9 (patch) | |
tree | 5611fcf0839efa44e52bff4d18a58eed852329b4 /src/utilcode/iallocator.cpp | |
parent | a70b732323b8be45a80fcd1488d60c7baa9ab0a3 (diff) | |
download | coreclr-e2df0fdbfaa688de075f020a1bf59e30fffe9fb9.tar.gz coreclr-e2df0fdbfaa688de075f020a1bf59e30fffe9fb9.tar.bz2 coreclr-e2df0fdbfaa688de075f020a1bf59e30fffe9fb9.zip |
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]
Diffstat (limited to 'src/utilcode/iallocator.cpp')
-rw-r--r-- | src/utilcode/iallocator.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/utilcode/iallocator.cpp b/src/utilcode/iallocator.cpp index d6dabc7f2e..8c5fc838e5 100644 --- a/src/utilcode/iallocator.cpp +++ b/src/utilcode/iallocator.cpp @@ -4,11 +4,7 @@ #include "stdafx.h" // Precompiled header key. #include "iallocator.h" +#include "defaultallocator.h" // static DefaultAllocator DefaultAllocator::s_singleton; - -// static -ProcessHeapAllocator ProcessHeapAllocator::s_singleton; - -int AllowZeroAllocator::s_zeroLenAllocTarg; |