Skip to content

Fix some oddities in Aarch64 TcmallocSlab::Pop(). - #599

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_972527211
Sep 1, 2026
Merged

Fix some oddities in Aarch64 TcmallocSlab::Pop().#599
copybara-service[bot] merged 1 commit into
masterfrom
test_972527211

Conversation

@copybara-service

Copy link
Copy Markdown

Fix some oddities in Aarch64 TcmallocSlab::Pop().

We were prefetching the slab address we just loaded from,
whereas what x86-64 does (and what makes sense) is to
prefetch the previous slab address.

Also use LSL #2 instead of having a separate instruction
(from outside the function) to shift the size class by 2.
This was done for a brief period of time earlier, rolled
back and then seemingly forgotten in the roll-forward.

We were prefetching the slab address we just loaded from,
whereas what x86-64 does (and what makes sense) is to
prefetch the _previous_ slab address.

Also use LSL #2 instead of having a separate instruction
(from outside the function) to shift the size class by 2.
This was done for a brief period of time earlier, rolled
back and then seemingly forgotten in the roll-forward.

PiperOrigin-RevId: 974325235
@copybara-service
copybara-service Bot merged commit 634097b into master Sep 1, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_972527211 branch September 1, 2026 07:44
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