From 2c99cc5f2bf4dfa40920f9456836158bccdb9b1d Mon Sep 17 00:00:00 2001 From: Andrew Au Date: Tue, 23 Jul 2024 13:45:02 -0700 Subject: [PATCH] Disable verify_committed_bytes for segments (#105102) --- src/coreclr/gc/gc.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp index 7f41750d55336..5300786bcecd7 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -33890,8 +33890,8 @@ void gc_heap::plan_phase (int condemned_gen_number) } #endif //FEATURE_EVENT_TRACE -#if defined(_DEBUG) - verify_committed_bytes (); +#ifdef _DEBUG + verify_committed_bytes (); #endif // _DEBUG #ifdef MULTIPLE_HEAPS @@ -47426,6 +47426,10 @@ void gc_heap::verify_committed_bytes_per_heap() void gc_heap::verify_committed_bytes() { +#ifndef USE_REGIONS + // TODO, https://github.com/dotnet/runtime/issues/102706, re-enable the testing after fixing this bug + return; +#endif //!USE_REGIONS size_t total_committed = 0; size_t committed_decommit; // unused size_t committed_free; // unused