summaryrefslogtreecommitdiff
path: root/src/vm
diff options
context:
space:
mode:
authorDavid Mason <davmason@microsoft.com>2018-04-06 13:19:21 -0700
committerGitHub <noreply@github.com>2018-04-06 13:19:21 -0700
commitdb55a1decc1d02538e61eac7db80b7daa351d5b6 (patch)
treeaab717d08f8b512ecd96a0560187c5fac387b10d /src/vm
parente7c755118a97ed9cfb1b24a3c1e82007793fc227 (diff)
downloadcoreclr-db55a1decc1d02538e61eac7db80b7daa351d5b6.tar.gz
coreclr-db55a1decc1d02538e61eac7db80b7daa351d5b6.tar.bz2
coreclr-db55a1decc1d02538e61eac7db80b7daa351d5b6.zip
Add GetLoaderAllocatorObjectForGC to IGCToCLR (#17443)
Diffstat (limited to 'src/vm')
-rw-r--r--src/vm/gcenv.ee.cpp13
-rw-r--r--src/vm/gcenv.ee.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/src/vm/gcenv.ee.cpp b/src/vm/gcenv.ee.cpp
index 590cc1022e..5954b7b00c 100644
--- a/src/vm/gcenv.ee.cpp
+++ b/src/vm/gcenv.ee.cpp
@@ -347,6 +347,19 @@ void GCToEEInterface::GcEnumAllocContexts(enum_alloc_context_func* fn, void* par
}
}
+
+uint8_t* GCToEEInterface::GetLoaderAllocatorObjectForGC(Object* pObject)
+{
+ CONTRACTL
+ {
+ NOTHROW;
+ GC_NOTRIGGER;
+ }
+ CONTRACTL_END;
+
+ return pObject->GetMethodTable()->GetLoaderAllocatorObjectForGC();
+}
+
bool GCToEEInterface::IsPreemptiveGCDisabled()
{
WRAPPER_NO_CONTRACT;
diff --git a/src/vm/gcenv.ee.h b/src/vm/gcenv.ee.h
index 97413e3d53..0dbf70d875 100644
--- a/src/vm/gcenv.ee.h
+++ b/src/vm/gcenv.ee.h
@@ -35,6 +35,7 @@ public:
Thread* GetThread();
gc_alloc_context * GetAllocContext();
void GcEnumAllocContexts(enum_alloc_context_func* fn, void* param);
+ uint8_t* GetLoaderAllocatorObjectForGC(Object* pObject);
// Diagnostics methods.
void DiagGCStart(int gen, bool isInduced);