Skip to content

Commit

Permalink
Avoid unnecessary whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cshung committed Jul 1, 2023
1 parent 1e64efe commit 6714707
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46171,8 +46171,8 @@ void gc_heap::descr_generations_to_profiler (gen_walk_fn fn, void *context)
while (seg)
{
fn(context, curr_gen_number, heap_segment_mem (seg),
heap_segment_allocated (seg),
heap_segment_reserved (seg));
heap_segment_allocated (seg),
heap_segment_reserved (seg));

seg = heap_segment_next_rw (seg);
}
Expand All @@ -46186,9 +46186,9 @@ void gc_heap::descr_generations_to_profiler (gen_walk_fn fn, void *context)
// for generation # curr_gen_number
// for heap # heap_no
fn(context, curr_gen_number, heap_segment_mem (seg),
heap_segment_allocated (seg),
(curr_gen_number > max_generation) ?
heap_segment_reserved (seg) : heap_segment_allocated (seg));
heap_segment_allocated (seg),
(curr_gen_number > max_generation) ?
heap_segment_reserved (seg) : heap_segment_allocated (seg));

seg = heap_segment_next_rw (seg);
}
Expand Down
1 change: 0 additions & 1 deletion src/coreclr/gc/gcee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ segment_handle GCHeap::RegisterFrozenSegment(segment_info *pseginfo)
heap_segment_used(seg) = heap_segment_allocated(seg);
heap_segment_plan_allocated(seg) = 0;
#ifdef USE_REGIONS
// TODO - that can be interesting
heap_segment_gen_num(seg) = max_generation;
#endif //USE_REGIONS
seg->flags = heap_segment_flags_readonly;
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/gc/gcinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ enum GCEventKeyword
GCEventKeyword_GCHeapDump = 0x100000,
GCEventKeyword_GCSampledObjectAllocationHigh = 0x200000,
GCEventKeyword_GCHeapSurvivalAndMovement = 0x400000,
GCEventKeyword_ManagedHeapCollect = 0x800000,
GCEventKeyword_ManagedHeapCollect = 0x800000,
GCEventKeyword_GCHeapAndTypeNames = 0x1000000,
GCEventKeyword_GCSampledObjectAllocationLow = 0x2000000,
GCEventKeyword_All = GCEventKeyword_GC
Expand Down
2 changes: 1 addition & 1 deletion src/tests/profiler/native/nongcheap/nongcheap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ HRESULT NonGcHeapProfiler::GarbageCollectionFinished()
{
printf("\tseg#%u, rangeStart=%p, rangeLength=%u, rangeLengthReserved=%u\n",
i, (void*)gc_segments[i].rangeStart, (ULONG)gc_segments[i].rangeLength, (ULONG)gc_segments[i].rangeLengthReserved);

if ((ULONG)gc_segments[i].rangeLength > (ULONG)gc_segments[i].rangeLengthReserved)
{
printf("GetGenerationBounds: rangeLength > rangeLengthReserved");
Expand Down

0 comments on commit 6714707

Please sign in to comment.