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

Unified Diff: base/allocator/partition_allocator/partition_alloc.cc

Issue 2921283002: Need to update last_slot when unprovisioned_bytes && discard. (Closed)
Patch Set: Fixed PartitionAllocTest.PurgeDiscardable failure Created 3 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: base/allocator/partition_allocator/partition_alloc.cc
diff --git a/base/allocator/partition_allocator/partition_alloc.cc b/base/allocator/partition_allocator/partition_alloc.cc
index 1aa321f70c0fd12ee1c11953c7ecc821ec6103d9..7541eed3ce355b1ff6349fce3ab4eeaa576c423a 100644
--- a/base/allocator/partition_allocator/partition_alloc.cc
+++ b/base/allocator/partition_allocator/partition_alloc.cc
@@ -1162,6 +1162,7 @@ static size_t PartitionPurgePage(PartitionPage* page, bool discard) {
*entry_ptr = PartitionFreelistMask(entry);
entry_ptr = reinterpret_cast<PartitionFreelistEntry**>(entry);
num_new_entries++;
+ last_slot = slotIndex;
}
// Terminate the freelist chain.
*entry_ptr = nullptr;
« 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