diff options
author | Sean Gillespie <segilles@microsoft.com> | 2016-09-08 11:27:24 -0700 |
---|---|---|
committer | Sean Gillespie <segilles@microsoft.com> | 2016-09-08 11:27:24 -0700 |
commit | 6519911fbccbec049f9592484f69c213b4b78264 (patch) | |
tree | cfb37485afcc96a1780e106a4f99d192ff42ab2a /src/gc/handletablecore.cpp | |
parent | cda9b0fc9a5f206b391b1bd104e43bd6c29aad7f (diff) | |
download | coreclr-6519911fbccbec049f9592484f69c213b4b78264.tar.gz coreclr-6519911fbccbec049f9592484f69c213b4b78264.tar.bz2 coreclr-6519911fbccbec049f9592484f69c213b4b78264.zip |
Introduce an interface separating the GC and the VM,
modifying the VM to utilize this interface.
Introduce an interface separating the GC and the rest of the VM
Remove static members of both IGCHeap and IGCHeapInternal and move the management of the singular GC heap to the VM.
Rename uses of IGCHeap in the VM to GCHeapHolder, as well as other misc. renames throughout the VM and GC.
Split each interface function into categories, document them, use consistent formatting across the interface
Undo some accidental find/replace collateral damage
Remove all ifdefs from the GC interface
Deduplicate function declarations between IGCHeap and IGCHeapInternal, expose AllocAlign8 through the interface and the reference to alloc_context to repair the ARM build
Paper cut: false -> nullptr
Repair the ARM and x86 builds
Rename GCHeapHolder -> GCHeapUtilities and address documentation feedback
Rebase against master
Rename gcholder.h/cpp -> gcheaputilities.h/cpp
Fix an uninitialized field on alloc_context causing test failures on clang
Rename the include guard for gcheaputilities.h
Un-breaks SOS by making the following changes:
1) Instructs the DAC to look for IGCHeap::gcHeapType by name,
instead of assuming that it exists near g_pGCHeap,
2) Eliminate all virtual calls on IGCHeap in the DAC, since we cannot
dispatch on an object in another process,
3) Because of 2, expose the number of generations past the GC interface
using a static variable on IGCHeap that the DAC can read directly.
repair the Windows build
Diffstat (limited to 'src/gc/handletablecore.cpp')
-rw-r--r-- | src/gc/handletablecore.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gc/handletablecore.cpp b/src/gc/handletablecore.cpp index 5e077de8a2..c6f569d5fa 100644 --- a/src/gc/handletablecore.cpp +++ b/src/gc/handletablecore.cpp @@ -14,6 +14,7 @@ #include "common.h" #include "gcenv.h" +#include "gc.h" #ifndef FEATURE_REDHAWK #include "nativeoverlapped.h" @@ -1111,13 +1112,13 @@ SLOW_PATH: // we have the lock held but the part we care about (the async table scan) takes the table lock during // a preparation step so we'll be able to complete our segment moves before the async scan has a // chance to interfere with us (or vice versa). - if (GCHeap::GetGCHeap()->IsConcurrentGCInProgress()) + if (g_theGcHeap->IsConcurrentGCInProgress()) { // A concurrent GC is in progress so someone might be scanning our segments asynchronously. // Release the lock, wait for the GC to complete and try again. The order is important; if we wait // before releasing the table lock we can deadlock with an async table scan. ch.Release(); - GCHeap::GetGCHeap()->WaitUntilConcurrentGCComplete(); + g_theGcHeap->WaitUntilConcurrentGCComplete(); continue; } |