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

[metadata] Replace uses of MonoType:byref by a getter #60313

Merged
merged 6 commits into from
Oct 14, 2021

Conversation

lambdageek
Copy link
Member

@lambdageek lambdageek commented Oct 12, 2021

Call m_type_is_byref instead of accessing the byref bit directly.

No functional change. (I hope).

This is in preparation for exploring alternative representations of ref types.

Call `mono_type_is_byref_internal` instead of accessing the byref bit directly.

No functional change. (I hope).

This is in preparation for exploring alternative representations of ref types.
@ghost
Copy link

ghost commented Oct 12, 2021

Tagging subscribers to this area:
See info in area-owners.md if you want to be subscribed.

Issue Details

Call mono_type_is_byref_internal instead of accessing the byref bit directly.

No functional change. (I hope).

This is in preparation for exploring alternative representations of ref types.

Author: lambdageek
Assignees: -
Labels:

area-VM-meta-mono

Milestone: -

@ghost
Copy link

ghost commented Oct 12, 2021

Tagging subscribers to this area:
See info in area-owners.md if you want to be subscribed.

Issue Details

Call mono_type_is_byref_internal instead of accessing the byref bit directly.

No functional change. (I hope).

This is in preparation for exploring alternative representations of ref types.

Author: lambdageek
Assignees: -
Labels:

area-VM-meta-mono

Milestone: -

@vargaz
Copy link
Contributor

vargaz commented Oct 12, 2021

Can it have a shorter name like m_type_is_byref () ?

@lambdageek
Copy link
Member Author

@vargaz changed to a shorter name. How's it look?

@lambdageek lambdageek merged commit f77e586 into dotnet:main Oct 14, 2021
lambdageek added a commit to lambdageek/runtime that referenced this pull request Oct 15, 2021
* [metadata] Replace uses of MonoType:byref by a getter

Call `mono_type_is_byref_internal` instead of accessing the byref bit directly.

No functional change. (I hope).

This is in preparation for exploring alternative representations of ref types.

* Change mono_type_is_byref_internal to take a const argument

* Missed a couple byref reads

* rename mono_type_is_byref_internal -> m_type_is_byref [NFC]

* more missed byrefs

* revert unintended change
akoeplinger added a commit to akoeplinger/runtime that referenced this pull request Oct 18, 2021
Those were missed in dotnet#60313 and caused a build break on s390x.
I fixed all other occurences I could find too.
akoeplinger added a commit that referenced this pull request Oct 18, 2021
Those were missed in #60313 and caused a build break on s390x.
I fixed all other occurences I could find too.
@ghost ghost locked as resolved and limited conversation to collaborators Nov 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants