Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make heap small chunk size setting logic more precise/correct #4527

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dipinhora
Copy link
Contributor

Prior to this commit, the heap small chunk size setting logic would bitwise-or in the size into the appropriate bits of the small chunk but this is technically incorrect as it doesn't clear out the bits first.

This commit changes the logic to ensure the relevant bits are cleared first before the new size is bitwise-or'd in.

Prior to this commit, the heap small chunk size setting logic would
bitwise-or in the size into the appropriate bits of the small chunk
but this is technically incorrect as it doesn't clear out the bits
first.

This commit changes the logic to ensure the relevant bits are cleared
first before the new size is bitwise-or'd in.
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss during sync Should be discussed during an upcoming sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants