diff options
author | Suchiman <robinsue@live.de> | 2019-06-11 21:14:57 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-06-11 20:26:23 -0700 |
commit | 18ca45f9718897f7b8fe1036213150dd6e7b97ec (patch) | |
tree | a0dcffe3048cacb67d7546d69410625919b4dcde /src/gc | |
parent | 7d0bffa8e5cea35b498dedb36393e0620377d03e (diff) | |
download | coreclr-18ca45f9718897f7b8fe1036213150dd6e7b97ec.tar.gz coreclr-18ca45f9718897f7b8fe1036213150dd6e7b97ec.tar.bz2 coreclr-18ca45f9718897f7b8fe1036213150dd6e7b97ec.zip |
UNREFERENCED_PARAMETER
Diffstat (limited to 'src/gc')
-rw-r--r-- | src/gc/gc.cpp | 14 | ||||
-rw-r--r-- | src/gc/objecthandle.cpp | 2 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp index e59c7a931a..7e60097883 100644 --- a/src/gc/gc.cpp +++ b/src/gc/gc.cpp @@ -9485,6 +9485,9 @@ inline void gc_heap::verify_card_bundle_bits_set(size_t first_card_word, size_t dprintf (3, ("Card bundle %Ix not set", x)); } } +#else + UNREFERENCED_PARAMETER(first_card_word); + UNREFERENCED_PARAMETER(last_card_word); #endif } @@ -15608,20 +15611,20 @@ void fire_overflow_event (uint8_t* overflow_min, void gc_heap::concurrent_print_time_delta (const char* msg) { + UNREFERENCED_PARAMETER(msg); #ifdef TRACE_GC size_t current_time = GetHighPrecisionTimeStamp(); size_t elapsed_time = current_time - time_bgc_last; time_bgc_last = current_time; dprintf (2, ("h%d: %s T %Id ms", heap_number, msg, elapsed_time)); -#else - UNREFERENCED_PARAMETER(msg); #endif //TRACE_GC } void gc_heap::free_list_info (int gen_num, const char* msg) { UNREFERENCED_PARAMETER(gen_num); + UNREFERENCED_PARAMETER(msg); #if defined (BACKGROUND_GC) && defined (TRACE_GC) dprintf (3, ("h%d: %s", heap_number, msg)); for (int i = 0; i <= (max_generation + 1); i++) @@ -15642,8 +15645,6 @@ void gc_heap::free_list_info (int gen_num, const char* msg) generation_free_obj_space (gen))); } } -#else - UNREFERENCED_PARAMETER(msg); #endif // BACKGROUND_GC && TRACE_GC } @@ -24297,6 +24298,7 @@ void gc_heap::relocate_survivor_helper (uint8_t* plug, uint8_t* plug_end) // if we expanded, right now we are not handling it as We are not saving the new reloc info. void gc_heap::verify_pins_with_post_plug_info (const char* msg) { + UNREFERENCED_PARAMETER(msg); #if defined (_DEBUG) && defined (VERIFY_HEAP) if (GCConfig::GetHeapVerifyLevel() & GCConfig::HEAPVERIFY_GC) { @@ -24349,8 +24351,6 @@ void gc_heap::verify_pins_with_post_plug_info (const char* msg) dprintf (3, ("%s verified", msg)); } -#else // _DEBUG && VERIFY_HEAP - UNREFERENCED_PARAMETER(msg); #endif // _DEBUG && VERIFY_HEAP } @@ -37602,5 +37602,7 @@ void PopulateDacVars(GcDacVars *gcDacVars) gcDacVars->n_heaps = &gc_heap::n_heaps; gcDacVars->g_heaps = reinterpret_cast<dac_gc_heap***>(&gc_heap::g_heaps); #endif // MULTIPLE_HEAPS +#else + UNREFERENCED_PARAMETER(gcDacVars); #endif // DACCESS_COMPILE } diff --git a/src/gc/objecthandle.cpp b/src/gc/objecthandle.cpp index 789d0b8735..1229802e6c 100644 --- a/src/gc/objecthandle.cpp +++ b/src/gc/objecthandle.cpp @@ -1780,6 +1780,8 @@ OBJECTREF GetDependentHandleSecondary(OBJECTHANDLE handle) void PopulateHandleTableDacVars(GcDacVars* gcDacVars) { + UNREFERENCED_PARAMETER(gcDacVars); + static_assert(offsetof(HandleTableMap, pBuckets) == offsetof(dac_handle_table_map, pBuckets), "handle table map DAC layout mismatch"); static_assert(offsetof(HandleTableMap, pNext) == offsetof(dac_handle_table_map, pNext), "handle table map DAC layout mismatch"); static_assert(offsetof(HandleTableMap, dwMaxIndex) == offsetof(dac_handle_table_map, dwMaxIndex), "handle table map DAC layout mismatch"); |