Chromium Code Reviews| 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; |
| } |