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

Improve flexibility of gc static base computation - #1501

Merged
davidwrighton merged 2 commits into
dotnet:masterfrom
davidwrighton:has_gc_static_base_refactor
Jul 11, 2016
Merged

davidwrighton merged 2 commits into
dotnet:masterfrom
davidwrighton:has_gc_static_base_refactor

Conversation

@davidwrighton

Copy link
Copy Markdown
Member
  • Move extension point for computing HasGCStaticBase from an override of the method on FieldDesc, to a function on the TypeSystemContext
  • Will allow runtime specific determination of rules for where static variables are stored

- Move extension point for computing HasGCStaticBase from an override of the method on FieldDesc, to a function on the TypeSystemContext
- Will allow runtime specific determination of rules for where static variables are stored
@davidwrighton

Copy link
Copy Markdown
Member Author

@MichalStrehovsky PTAL


// Abstraction to allow different runtimes to have different policy about which fields are
// in the GC static region, and which are not
public virtual bool ComputeHasGCStaticsBase(FieldDesc field)

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.

Make this protected internal? Users outside of the type system assembly shouldn't care about this or see this in IntelliSense.

@MichalStrehovsky

Copy link
Copy Markdown
Member

LGTM otherwise.

@davidwrighton
davidwrighton merged commit 98287b6 into dotnet:master Jul 11, 2016
@davidwrighton
davidwrighton deleted the has_gc_static_base_refactor branch July 11, 2016 21:21
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