-
Notifications
You must be signed in to change notification settings - Fork 10
Trace ptr_or_offset in jl_genericmemoryref_t #252
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
Open
qinsoon
wants to merge
6
commits into
mmtk:mmtk-support-moving-upstream
Choose a base branch
from
qinsoon:trace-ptr-or-offset
base: mmtk-support-moving-upstream
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d6744a7
Trace ptr_or_offset for jl_genericmemoryref_t
qinsoon 3966399
Check refvalue to genericmemory ref, and specially deal with it. Use
qinsoon 35fdb0f
Minor refactoring: use Rust edition 2021 for cstring literals
qinsoon 3587825
Trace ptr_or_offset as a general internal pointer
qinsoon 6607297
Merge branch 'mmtk-support-moving-upstream' into trace-ptr-or-offset
qinsoon fb3f50d
Temporarily work around for using internal pointer during tracing
qinsoon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
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.
@d-netto Is it possible that we're not tracing all
jl_genericmemoryref_t
objects with that check? I remember I had some code to simply print out if those objects were scanned when running the atomics test but for some reason nothing was being printed out.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.
Just more info for the discussion. In the runtime code, we can see that
jl_genericmemoryref_t
may be used as a value (rather than as a pointer to heap objects) -- the ref in jl_array_t is an example, there are a few functions that returnjl_genericmemoryref_t
as a value -- so objects of this type may be stored outside the heap, like stacks, global memory, native heap, etc. We should be fine with stacks. But if it appears in global memory, or native heap, or anywhere else, we would have an issue -- though I don't know if that happens or not.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.
Sorry about the delay. Will take a look soon.