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

Add support for non-GC static fields#17

Merged
MichalStrehovsky merged 3 commits into
dotnet:masterfrom
MichalStrehovsky:Statics
Oct 2, 2015
Merged

Add support for non-GC static fields#17
MichalStrehovsky merged 3 commits into
dotnet:masterfrom
MichalStrehovsky:Statics

Conversation

@MichalStrehovsky
Copy link
Copy Markdown
Member

This change includes:

  1. Static field layout computation (general purpose enough to cover GC
    statics and thread statics)
  2. Associated codegen support to generate helpers and calls to helpers
    (non-GC, non-thread, non-RVA fields only, with no support for class
    constructors and associated semantics)
  3. Emission of the non-GC static section into the assembly file

This change includes:
1. Static field layout computation (general purpose enough to cover GC
statics and thread statics)
2. Associated codegen support to generate helpers and calls to helpers
(non-GC, non-thread, non-RVA fields only, with no support for class
constructors and associated semantics)
3. Emission of the non-GC static section into the assembly file
@MichalStrehovsky
Copy link
Copy Markdown
Member Author

@jkotas Can you have a look please?

@davidwrighton Can you please review type system changes? You also indicated dislike of the FieldMason type name - now is your chance to suggest a better name. I picked "mason" because a brick mason in the real world lays out bricks and a field mason, well, lays out fields.

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.

This should use TypeDesc.UnderlyingType

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.

It may not be actually needed. See my other feedback. Delete it?

@jkotas
Copy link
Copy Markdown
Member

jkotas commented Oct 1, 2015

LGTM otherwise

@jkotas
Copy link
Copy Markdown
Member

jkotas commented Oct 1, 2015

FieldMason type name

FieldLayoutAlgorithm?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants