Skip to content

Commit 8f5de40

Browse files
[release/8.0-staging] #ifdef out code that requires FEATURE_EVENT_TRACE (#94715)
* #ifdef out code that requires FEATURE_EVENT_TRACE * remove assert --------- Co-authored-by: yowl <[email protected]>
1 parent 64bff1a commit 8f5de40

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/coreclr/gc/gc.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10069,7 +10069,6 @@ void gc_heap::update_ro_segment (heap_segment* seg, uint8_t* allocated, uint8_t*
1006910069
{
1007010070
enter_spin_lock (&gc_heap::gc_lock);
1007110071

10072-
assert (use_frozen_segments_p);
1007310072
assert (heap_segment_read_only_p (seg));
1007410073
assert (allocated <= committed);
1007510074
assert (committed <= heap_segment_reserved (seg));

src/coreclr/nativeaot/Runtime/gcrhenv.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,10 +749,12 @@ void GCToEEInterface::DiagGCEnd(size_t index, int gen, int reason, bool fConcurr
749749
UNREFERENCED_PARAMETER(gen);
750750
UNREFERENCED_PARAMETER(reason);
751751

752+
#ifdef FEATURE_EVENT_TRACE
752753
if (!fConcurrent)
753754
{
754755
ETW::GCLog::WalkHeap();
755756
}
757+
#endif // FEATURE_EVENT_TRACE
756758
}
757759

758760
// Note on last parameter: when calling this for bgc, only ETW

0 commit comments

Comments
 (0)