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

Remove PlainPointer, RelativePointer and RelativeFixupPointer #57707

Merged
merged 10 commits into from
Aug 24, 2021

Conversation

davidwrighton
Copy link
Member

  • Removed all uses of PlainPointer
  • Removed RelativePointer usage from vtable, and MethodDesc logic
  • This PR is WIP as the majority of RelativePointer code isn't yet deleted.

Fixes #57706

- Removed all uses of PlainPointer
- Removed RelativePointer usage from vtable, and MethodDesc logic
Remove fixuppointer.h
@davidwrighton davidwrighton marked this pull request as ready for review August 21, 2021 01:48
@@ -39,7 +39,7 @@ class FieldDesc
#endif

protected:
RelativePointer<PTR_MethodTable> m_pMTOfEnclosingClass; // This is used to hold the log2 of the field size temporarily during class loading. Yuck.
PTR_MethodTable m_pMTOfEnclosingClass; // This is used to hold the log2 of the field size temporarily during class loading. Yuck.
Copy link
Member

Choose a reason for hiding this comment

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

In a future cleanup PR, we should make this field a union to make the "Yuck" comment a little more formalized so we aren't just storing an integer in a "dac-ized" pointer field.

src/coreclr/vm/jitinterface.cpp Outdated Show resolved Hide resolved
@davidwrighton davidwrighton merged commit 5a5b104 into dotnet:main Aug 24, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Sep 23, 2021
@davidwrighton davidwrighton deleted the RemoveFancyPointers branch April 13, 2023 18:49
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.

Remove PlainPointer/RelativePointer/RelativeFixupPointer
3 participants