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

Checking if the referent has been cleared #698

Merged
merged 2 commits into from
Nov 15, 2022

Conversation

udesou
Copy link
Contributor

@udesou udesou commented Nov 14, 2022

In Julia referents are set to jl_nothing instead of null to indicate that a reference has been cleared.
I have added a default method to the ReferenceGlue trait and replaced the checks in mmtk-core to call this method instead. Therefore, bindings can overwrite the method is_referent_cleared to do the check properly.

@udesou udesou requested a review from qinsoon November 14, 2022 05:06
Copy link
Member

@qinsoon qinsoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qinsoon qinsoon added the PR-testing Run binding tests for the pull request (deprecated: use PR-extended-testing instead) label Nov 14, 2022
@qinsoon qinsoon merged commit 9648aed into mmtk:master Nov 15, 2022
wenyuzhao pushed a commit to wenyuzhao/mmtk-core that referenced this pull request Mar 20, 2023
Some runtimes clear reference to a different value other than null. This PR adds a method to the ReferenceGlue trait to check if a reference is cleared and replac the checks in mmtk-core to call this method instead. Therefore, bindings can overwrite the method `is_referent_cleared` to do the check properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-testing Run binding tests for the pull request (deprecated: use PR-extended-testing instead)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants