- Notifications
You must be signed in to change notification settings - Fork5.2k
Remove helperframe marshal#96860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Convert Marshal.GetHRForException and Marshal.GetExceptionForHRInternal to QCalls.
davidwrighton left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
OffsetOfInternal shouldn't take a field object, it should just be implemented as taking a FieldDesc* as input. Then it won't need anything to do with wonking around with the GC state at all, and can operate entirely in preemptive mode
AaronRobinsonMSFT commentedJan 11, 2024
@davidwrighton Done. |
src/coreclr/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.CoreCLR.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/coreclr/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.CoreCLR.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
davidwrighton left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Just one more nit... around unnecessary GCX_PREEMP();
Uh oh!
There was an error while loading.Please reload this page.
src/coreclr/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.CoreCLR.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…ervices/Marshal.CoreCLR.cs
Uh oh!
There was an error while loading.Please reload this page.
jkotas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM. Thanks!
* Remove HelperMethodFrames from Marshal APIsConvert Marshal.GetHRForException and Marshal.GetExceptionForHRInternal to QCalls.* Convert OffsetOfHelper to QCall* Feedback* Remove GC transition.* Update src/coreclr/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.CoreCLR.cs* Update src/coreclr/vm/marshalnative.cpp---------Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Convert
MarshalAPI FCalls withHelperMethodFramesinto QCalls.