Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Refactor GCDesc emission - #1244

Merged
MichalStrehovsky merged 5 commits into
dotnet:masterfrom
MichalStrehovsky:gcDescRefactor
May 6, 2016
Merged

MichalStrehovsky merged 5 commits into
dotnet:masterfrom
MichalStrehovsky:gcDescRefactor

Conversation

@MichalStrehovsky

@MichalStrehovsky MichalStrehovsky commented May 6, 2016 •

Copy link
Copy Markdown
Member
  • Pull out GCDescEncoder into a separate struct so that it can be shared by GCStaticEETypeNode.
  • Get GCStaticEETypeNode into using it.

Fixes #1239.

dataBuilder.EmitShort(0x20); // TypeFlags.HasPointers
else
dataBuilder.EmitShort(0x00);
dataBuilder.EmitShort((short)EETypeFlags.HasPointersFlag);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Assuming we will use the current design for thread statics - where both GC and non-GC statics are allocated together - we may end up with EEType with no pointers here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah. Good catch.

@jkotas

jkotas commented May 6, 2016

Copy link
Copy Markdown
Member

LGTM otherwise

@MichalStrehovsky
MichalStrehovsky merged commit 4035ece into dotnet:master May 6, 2016
@MichalStrehovsky
MichalStrehovsky deleted the gcDescRefactor branch May 6, 2016 18:22
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.

3 participants