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.
Make chunk map as global side metadata, and each space only lists its own chunks using chunk map #1304
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 chunk map as global side metadata, and each space only lists its own chunks using chunk map #1304
Changes from all commits
b7b5988
1c64dcb
abbde8b
4472263
5a724c2
5bc0517
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my branch I did a quick fix and didn't bother to coalesce
MS_ACTIVE_CHUNK
andCHUNK_MARK
but I think we should for this PR. It's not useful to have the same metadata under different names (they basically are the same metadata).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MS_ACTIVE_CHUNK
only cares about chunks with malloc in them. But with this PR, we should be able to distinguish between a chunk mapped by the non-moving immix space and the malloc space (for example). I feel likeMS_ACTIVE_CHUNK
can be subsumed byCHUNK_MARK
now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be possible. We could simply replace
MS_ACTIVE_CHUNK
in malloc mark sweep toCHUNK_MARK
(which might be an issue if we have other spaces that useChunkMap
). Or we can start usingChunkMap
in malloc mark sweep, but this may not be an easy refactoring. Either way, I will give it a try after this PR.