Skip to content

Commit

Permalink
Eliminate more interaction between implicit root bit and recycler vis…
Browse files Browse the repository at this point in the history
…ited objects
  • Loading branch information
Bo Cupp committed Oct 10, 2017
1 parent a069643 commit 8cca400
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions lib/Common/Memory/HeapInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,13 +771,6 @@ HeapInfo::ResetMarks(ResetMarkFlags flags)
});
#endif

#ifdef RECYCLER_VISITED_HOST
HeapBlockList::ForEach(newRecyclerVisitedHostHeapBlockList, [flags](SmallNormalHeapBlock * heapBlock)
{
heapBlock->MarkImplicitRoots();
});
#endif

HeapBlockList::ForEach(newFinalizableHeapBlockList, [flags](SmallNormalHeapBlock * heapBlock)
{
heapBlock->MarkImplicitRoots();
Expand Down Expand Up @@ -808,13 +801,6 @@ HeapInfo::ResetMarks(ResetMarkFlags flags)
{
heapBlock->MarkImplicitRoots();
});

#ifdef RECYCLER_VISITED_HOST
HeapBlockList::ForEach(newMediumRecyclerVisitedHostHeapBlockList, [flags](MediumNormalHeapBlock * heapBlock)
{
heapBlock->MarkImplicitRoots();
});
#endif
}
#endif
}
Expand Down Expand Up @@ -855,13 +841,6 @@ HeapInfo::ScanInitialImplicitRoots()
});
#endif

#ifdef RECYCLER_VISITED_HOST
HeapBlockList::ForEach(newRecyclerVisitedHostHeapBlockList, [this](SmallNormalHeapBlock * heapBlock)
{
heapBlock->ScanInitialImplicitRoots(recycler);
});
#endif

HeapBlockList::ForEach(newFinalizableHeapBlockList, [this](SmallNormalHeapBlock * heapBlock)
{
heapBlock->ScanInitialImplicitRoots(recycler);
Expand Down Expand Up @@ -889,13 +868,6 @@ HeapInfo::ScanInitialImplicitRoots()
});
#endif

#ifdef RECYCLER_VISITED_HOST
HeapBlockList::ForEach(newMediumRecyclerVisitedHostHeapBlockList, [this](MediumNormalHeapBlock * heapBlock)
{
heapBlock->ScanInitialImplicitRoots(recycler);
});
#endif

HeapBlockList::ForEach(newMediumFinalizableHeapBlockList, [this](MediumNormalHeapBlock * heapBlock)
{
heapBlock->ScanInitialImplicitRoots(recycler);
Expand Down Expand Up @@ -947,13 +919,6 @@ HeapInfo::ScanNewImplicitRoots()
});
#endif

#ifdef RECYCLER_VISITED_HOST
HeapBlockList::ForEach(newRecyclerVisitedHostHeapBlockList, [this](SmallNormalHeapBlock * heapBlock)
{
heapBlock->ScanNewImplicitRoots(recycler);
});
#endif

HeapBlockList::ForEach(newFinalizableHeapBlockList, [this](SmallNormalHeapBlock * heapBlock)
{
heapBlock->ScanNewImplicitRoots(recycler);
Expand Down Expand Up @@ -981,12 +946,6 @@ HeapInfo::ScanNewImplicitRoots()
heapBlock->ScanNewImplicitRoots(recycler);
});
#endif
#ifdef RECYCLER_VISITED_HOST
HeapBlockList::ForEach(newMediumRecyclerVisitedHostHeapBlockList, [this](MediumNormalHeapBlock * heapBlock)
{
heapBlock->ScanNewImplicitRoots(recycler);
});
#endif

HeapBlockList::ForEach(newMediumFinalizableHeapBlockList, [this](MediumNormalHeapBlock * heapBlock)
{
Expand Down

0 comments on commit 8cca400

Please sign in to comment.