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

Unified Diff: src/heap/spaces.h

Issue 1411263002: [heap] Fix stale end_ pointer in FreeListCategory::EvictFreeListItemsInList (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix copy/paste error Created 5 years, 2 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 | src/heap/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.h
diff --git a/src/heap/spaces.h b/src/heap/spaces.h
index de49b5630716c1d035c1e4e901c0230d9c44dab7..058ac89c9609b22bfc632add20635f3ddf5b0346 100644
--- a/src/heap/spaces.h
+++ b/src/heap/spaces.h
@@ -904,6 +904,23 @@ class Page : public MemoryChunk {
}
}
+ intptr_t available_in_free_list(FreeListCategoryType type) {
+ switch (type) {
+ case kSmall:
+ return available_in_small_free_list();
+ case kMedium:
+ return available_in_medium_free_list();
+ case kLarge:
+ return available_in_large_free_list();
+ case kHuge:
+ return available_in_huge_free_list();
+ default:
+ UNREACHABLE();
+ }
+ UNREACHABLE();
+ return 0;
+ }
+
#ifdef DEBUG
void Print();
#endif // DEBUG
« no previous file with comments | « no previous file | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698