Skip to content

Commit e256672

Browse files
committed
Experiment with GC stress logging
1 parent f5a7326 commit e256672

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/coreclr/gc/gc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ inline bool IsServerHeap()
348348
#define MAX_LONGPATH 1024
349349
#endif // MAX_LONGPATH
350350

351-
// #define TRACE_GC
351+
#define TRACE_GC
352352
// #define SIMPLE_DPRINTF
353353

354354
#ifdef TRACE_GC

src/tests/GC/API/Frozen/Frozen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private static unsafe int Main()
180180
GC.Collect();
181181
Console.WriteLine(root.next.next != null);
182182
frozenSegment.Release();
183-
return 100;
183+
throw new Exception("Intentional failure");
184184
}
185185
}
186186
}

0 commit comments

Comments
 (0)