Skip to content

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

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.

@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

4 participants