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

Unified Diff: runtime/vm/freelist.h

Issue 2872883003: Avoid scanning huge freelists for large enough free blocks. (Closed)
Patch Set: Feedback from Martin Created 3 years, 7 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 | runtime/vm/freelist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/freelist.h
diff --git a/runtime/vm/freelist.h b/runtime/vm/freelist.h
index 068c4e21e84514e2dc1aee6aaa6a55cd8fb93e6d..f8a8e82f66ad863facacfbaed7d53db209dd7191 100644
--- a/runtime/vm/freelist.h
+++ b/runtime/vm/freelist.h
@@ -98,6 +98,7 @@ class FreeList {
private:
static const int kNumLists = 128;
+ static const intptr_t kInitialFreeListSearchBudget = 1000;
static intptr_t IndexForSize(intptr_t size);
@@ -120,6 +121,8 @@ class FreeList {
FreeListElement* free_lists_[kNumLists + 1];
+ intptr_t freelist_search_budget_;
+
// The largest available small size in bytes, or negative if there is none.
intptr_t last_free_small_size_;
« no previous file with comments | « no previous file | runtime/vm/freelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698