Skip to content

Enable 2-line write prefetch in TCMalloc per-CPU slab Pop. - #1940

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

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

Conversation

@copybara-service

Copy link
Copy Markdown

Enable 2-line write prefetch in TCMalloc per-CPU slab Pop.

Flip TCMALLOC_INTERNAL_WRITE_PREFETCH to 1 by default so TcmallocSlab::Pop prefetches up to the second cache line of the next object with write intent (PrefetchWT0). Switch the build and test variant to no_write_prefetch (-DTCMALLOC_INTERNAL_WRITE_PREFETCH=0) to keep the legacy single-line read-prefetch fallback covered, and update fast-path disassembly goldens.

Flip `TCMALLOC_INTERNAL_WRITE_PREFETCH` to 1 by default so `TcmallocSlab::Pop` prefetches up to the second cache line of the next object with write intent (`PrefetchWT0`). Switch the build and test variant to `no_write_prefetch` (`-DTCMALLOC_INTERNAL_WRITE_PREFETCH=0`) to keep the legacy single-line read-prefetch fallback covered, and update fast-path disassembly goldens.

PiperOrigin-RevId: 1021824224

This branch has not been deployed

No deployments
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