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

Add support for GC static fields #44

Merged
merged 2 commits into from
Oct 12, 2015
Merged

Add support for GC static fields #44

merged 2 commits into from
Oct 12, 2015

Conversation

MichalStrehovsky
Copy link
Member

  • Expose GC static size and alignment from MetadataType
  • Add __assignReference JIT helper
  • Emit GC static data section into the assembly file

void OutputJitHelpers()
{
// assignReference is always the same. This will be a call into the runtime.
Out.WriteLine("__assignReference:");
Copy link
Member

Choose a reason for hiding this comment

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

This should just call WriteBarrier - maybe copy the implementation from Native\gc\sample\GCSample.cpp to the "repro" project until we get the right implementation from MRT?

@jkotas
Copy link
Member

jkotas commented Oct 12, 2015

(Maybe there are better names AsmWriter.EEType.cs, EEType.AsmWriter.cs ... not sure.)

* Expose GC static size and alignment from MetadataType
* Add __assignReference JIT helper
* Emit GC static data section into the assembly file
We were previously allocating the GC static region statically in the
image, but for Ready to Run, we will require GC static regions to be
allocated on the GC heap.
MichalStrehovsky added a commit that referenced this pull request Oct 12, 2015
Add support for GC static fields
@MichalStrehovsky MichalStrehovsky merged commit b01f36c into dotnet:master Oct 12, 2015
@MichalStrehovsky MichalStrehovsky deleted the GCStatics branch October 12, 2015 23:20
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