Skip to content

Optimize Span::FreelistEmpty() by checking against allocated_.#312

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

Optimize Span::FreelistEmpty() by checking against allocated_.#312
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_942682828

Conversation

@copybara-service

Copy link
Copy Markdown

Optimize Span::FreelistEmpty() by checking against allocated_.

We already have a data dependency from CentralFreeList::object_size_ to
determine whether we are in a small object (list-ful) or large object
(bitmap-ful) Span, so this merely replaces it. It eliminates the conditional
logic driven off of that load and turns it into a single load from the Span.

We already have a data dependency from CentralFreeList::object_size_ to
determine whether we are in a small object (list-ful) or large object
(bitmap-ful) Span, so this merely replaces it.  It eliminates the conditional
logic driven off of that load and turns it into a single load from the Span.

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