summaryrefslogtreecommitdiff
path: root/src/gc/objecthandle.cpp
diff options
context:
space:
mode:
authorSean Gillespie <segilles@microsoft.com>2017-06-23 14:48:41 -0700
committerGitHub <noreply@github.com>2017-06-23 14:48:41 -0700
commit3a24095610ecaba62495740bf8319ad467af4997 (patch)
treeca8321d9d9bdaf09a43078cb9422df3f34a666b0 /src/gc/objecthandle.cpp
parent16cee64552b4fd6d08dd84b273cc223094d5b5f6 (diff)
downloadcoreclr-3a24095610ecaba62495740bf8319ad467af4997.tar.gz
coreclr-3a24095610ecaba62495740bf8319ad467af4997.tar.bz2
coreclr-3a24095610ecaba62495740bf8319ad467af4997.zip
[Local GC] Remove a number of inclusions of handle table private headers from the VM (#12389)
* Remove inclusions of private handle table headers from the VM * Add TraceRefCountedHandles to the GC handle table interface * Fix the Unix build * Move ValidatePinnedObject to marshalnative.h
Diffstat (limited to 'src/gc/objecthandle.cpp')
-rw-r--r--src/gc/objecthandle.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gc/objecthandle.cpp b/src/gc/objecthandle.cpp
index e69e21008b..d7c5d39de5 100644
--- a/src/gc/objecthandle.cpp
+++ b/src/gc/objecthandle.cpp
@@ -1162,10 +1162,10 @@ void Ref_TraceNormalRoots(uint32_t condemned, uint32_t maxgen, ScanContext* sc,
#endif // FEATURE_COMINTEROP || FEATURE_REDHAWK
}
-#ifdef FEATURE_COMINTEROP
void Ref_TraceRefCountHandles(HANDLESCANPROC callback, uintptr_t lParam1, uintptr_t lParam2)
{
+#ifdef FEATURE_COMINTEROP
int max_slots = getNumberOfSlots();
uint32_t handleType = HNDTYPE_REFCOUNTED;
@@ -1186,9 +1186,13 @@ void Ref_TraceRefCountHandles(HANDLESCANPROC callback, uintptr_t lParam1, uintpt
}
walk = walk->pNext;
}
+#else
+ UNREFERENCED_PARAMETER(callback);
+ UNREFERENCED_PARAMETER(lParam1);
+ UNREFERENCED_PARAMETER(lParam2);
+#endif // FEATURE_COMINTEROP
}
-#endif