summaryrefslogtreecommitdiffstats
path: root/chromium/base/allocator/partition_allocator/partition_root_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/allocator/partition_allocator/partition_root_base.h')
-rw-r--r--chromium/base/allocator/partition_allocator/partition_root_base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/base/allocator/partition_allocator/partition_root_base.h b/chromium/base/allocator/partition_allocator/partition_root_base.h
index 9e971f9f712..a3f9175b3cb 100644
--- a/chromium/base/allocator/partition_allocator/partition_root_base.h
+++ b/chromium/base/allocator/partition_allocator/partition_root_base.h
@@ -107,8 +107,8 @@ ALWAYS_INLINE void* PartitionRootBase::AllocFromBucket(PartitionBucket* bucket,
// the size metadata.
DCHECK(page->get_raw_size() == 0);
internal::PartitionFreelistEntry* new_head =
- internal::PartitionFreelistEntry::Transform(
- static_cast<internal::PartitionFreelistEntry*>(ret)->next);
+ internal::EncodedPartitionFreelistEntry::Decode(
+ page->freelist_head->next);
page->freelist_head = new_head;
page->num_allocated_slots++;
} else {