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

Unified Diff: src/heap/spaces.cc

Issue 1899813003: [crankshaft] Fragmentation-free allocation folding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index c4219df48b7dbbac8a29e1d1d7e3728b16415397..6cb85742818b3063987698c4f0f3787acb48a21a 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -2390,7 +2390,7 @@ HeapObject* FreeList::Allocate(int size_in_bytes) {
new_node_size - size_in_bytes - linear_size);
owner_->SetTopAndLimit(new_node->address() + size_in_bytes,
new_node->address() + size_in_bytes + linear_size);
- } else if (bytes_left > 0) {
+ } else if (bytes_left >= 0) {
Michael Lippautz 2016/04/19 10:49:50 nit: can we do this as "else" to make clear that t
Hannes Payer (out of office) 2016/04/19 11:03:56 Also would also mean that this value could be nega
// Normally we give the rest of the node to the allocator as its new
// linear allocation area.
owner_->SetTopAndLimit(new_node->address() + size_in_bytes,

Powered by Google App Engine
This is Rietveld 408576698