From e2566729fff67523fde80a5e76ef4b6f0983f80c Mon Sep 17 00:00:00 2001 From: Andrew Au Date: Mon, 10 Jun 2024 12:29:09 -0700 Subject: [PATCH] Experiment with GC stress logging --- src/coreclr/gc/gc.h | 2 +- src/tests/GC/API/Frozen/Frozen.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/gc/gc.h b/src/coreclr/gc/gc.h index e80853489a2410..5b3a0266524a04 100644 --- a/src/coreclr/gc/gc.h +++ b/src/coreclr/gc/gc.h @@ -348,7 +348,7 @@ inline bool IsServerHeap() #define MAX_LONGPATH 1024 #endif // MAX_LONGPATH -// #define TRACE_GC +#define TRACE_GC // #define SIMPLE_DPRINTF #ifdef TRACE_GC diff --git a/src/tests/GC/API/Frozen/Frozen.cs b/src/tests/GC/API/Frozen/Frozen.cs index d7e78a755eac42..22de67848b2f8c 100644 --- a/src/tests/GC/API/Frozen/Frozen.cs +++ b/src/tests/GC/API/Frozen/Frozen.cs @@ -180,7 +180,7 @@ private static unsafe int Main() GC.Collect(); Console.WriteLine(root.next.next != null); frozenSegment.Release(); - return 100; + throw new Exception("Intentional failure"); } } }