Unconditionally reserve the top header byte in runtime 4#2397
Merged
ncik-roberts merged 1 commit intooxcaml:reserve-header-bits-in-runtime-5from Apr 3, 2024
Conversation
24d6c9d to
fbf4322
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #2389 to also unconditionally reserve the top header byte in runtime 4. This is a prerequisite for the rollout of mixed blocks.
A priori, you'd expect this change to be a no-op for existing code on 64 bit platforms. The top header byte, if not reserved, is interpreted as part of the size of the block. And you'd need to create a comically big value to require stealing bits from the top byte. Napkin math to support this claim: with the top header byte reserved, there are 46 remaining bits used to encode the size. To require more than 46 size bits, you'd need to create a value that's 2^46 words = 512 TiB large.
Internal testing supports this claim.