Skip to content

Optimize HugeRegion::Release using RangeTracker::PrevFreeRange. - #648

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

Optimize HugeRegion::Release using RangeTracker::PrevFreeRange.#648
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_973934966

Conversation

@copybara-service

Copy link
Copy Markdown

Optimize HugeRegion::Release using RangeTracker::PrevFreeRange.

Add Bitmap::PrevFreeRange and RangeTracker::PrevFreeRange to scan free ranges in reverse. Use PrevFreeRange during adaptive release to scan from back to front directly, avoiding candidate buffering and flattening control flow. Legacy behavior is preserved behind TCMALLOC_INTERNAL_LEGACY_LOCKING.

Add Bitmap::PrevFreeRange and RangeTracker::PrevFreeRange to scan free ranges in reverse. Use PrevFreeRange during adaptive release to scan from back to front directly, avoiding candidate buffering and flattening control flow. Legacy behavior is preserved behind TCMALLOC_INTERNAL_LEGACY_LOCKING.

PiperOrigin-RevId: 973934966
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