Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e256672

Browse files
committedJun 10, 2024·
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

+1-1
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

+1-1
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)
Please sign in to comment.