Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Unified Diff: src/heap/spaces.cc

Issue 2109473004: [heap] Eagerly unlink empty kHuge category from free list (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index 6b47c95bb086bd3af66f83ab552bfe5f7e0146d6..8cb860fef49d1d533b1f5cd054e4c3e6dbc56706 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -2361,6 +2361,9 @@ FreeSpace* FreeList::SearchForNodeInList(FreeListCategoryType type,
DCHECK(IsVeryLong() || Available() == SumFreeLists());
return node;
}
+ if (current->is_empty()) {
+ RemoveCategory(current);
+ }
}
return node;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698