From 3a24095610ecaba62495740bf8319ad467af4997 Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Fri, 23 Jun 2017 14:48:41 -0700 Subject: [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 --- src/gc/objecthandle.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gc/objecthandle.cpp') 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 -- cgit v1.2.3