Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

jkoritzinsky
Copy link
Member

In #26340, I realized that for various technical reasons we don't have an easy way to embed the struct marshal IL stubs into R2R images. So, as part of that PR, we are going to disable generating struct stubs in System.Private.CoreLib (the only place we would have embed them in the first place).

I discovered that EventPipeInternal::Enable has to marshal an array of non-blittable structs, so to keep it inlining (and reduce the number of stubs in System.Private.CoreLib), this PR manually marshals the parameters for EventPipeInternal.Enable.

cc: @davidwrighton

…ntPipe.cs

Co-Authored-By: Jan Kotas <jkotas@microsoft.com>
Copy link
Member

@davidwrighton davidwrighton left a comment

Choose a reason for hiding this comment

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

This looks good, but please get a clean CI before checkin.

@jkoritzinsky jkoritzinsky merged commit db04a9a into dotnet:master Sep 10, 2019
@jkoritzinsky jkoritzinsky deleted the manually-marshal-qcall branch September 10, 2019 22:33
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…eclr#26496)

* Manually marshal parameters for EventPipeInternal.Enable.

* Update src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipe.cs

Co-Authored-By: Jan Kotas <jkotas@microsoft.com>


Commit migrated from dotnet/coreclr@db04a9a
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.

4 participants