Skip to content

Freelist Arena blocks to consume wasted memory - #463

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_956699564
Draft

Freelist Arena blocks to consume wasted memory#463
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_956699564

Conversation

@copybara-service

Copy link
Copy Markdown

Freelist Arena blocks to consume wasted memory

When an allocation request exceeds the remaining capacity of the current
Arena block, put the remainder on a freelist (if >= sizeof(Block) after
alignment) instead of discarding it. Before allocating fresh memory from
system_allocator, search the freelist for a block capable of satisfying
the allocation.

@copybara-service
copybara-service Bot force-pushed the test_956699564 branch 4 times, most recently from ac5f112 to 3a65478 Compare August 7, 2026 19:19
When an allocation request exceeds the remaining capacity of the current
Arena block, put the remainder on a freelist (if >= sizeof(Block) after
alignment) instead of discarding it. Before allocating fresh memory from
system_allocator, search the freelist for a block capable of satisfying
the allocation.

PiperOrigin-RevId: 956699564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant