Skip to content

Commit

Permalink
#ifdef out code that requires FEATURE_EVENT_TRACE (#91895)
Browse files Browse the repository at this point in the history
  • Loading branch information
yowl authored Oct 23, 2023
1 parent 31e764b commit 00f1e0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10097,7 +10097,6 @@ void gc_heap::update_ro_segment (heap_segment* seg, uint8_t* allocated, uint8_t*
{
enter_spin_lock (&gc_heap::gc_lock);

assert (use_frozen_segments_p);
assert (heap_segment_read_only_p (seg));
assert (allocated <= committed);
assert (committed <= heap_segment_reserved (seg));
Expand Down
2 changes: 2 additions & 0 deletions src/coreclr/nativeaot/Runtime/gcrhenv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,10 +732,12 @@ void GCToEEInterface::DiagGCEnd(size_t index, int gen, int reason, bool fConcurr
UNREFERENCED_PARAMETER(gen);
UNREFERENCED_PARAMETER(reason);

#ifdef FEATURE_EVENT_TRACE
if (!fConcurrent)
{
ETW::GCLog::WalkHeap();
}
#endif // FEATURE_EVENT_TRACE
}

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

0 comments on commit 00f1e0c

Please sign in to comment.