You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ff279ba
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Enable DisabledRuntimeMarshalling tests on native AOT (#130160)
These were already passing.
One wasn't and it still doesn't, but that's mostly by design.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
if(this.MethodBeingCompiled.HasInstantiation||this.MethodBeingCompiled.OwningType.HasInstantiation)// No generics involved
4651
+
if(!isFallbackBodyCompilation&&(this.MethodBeingCompiled.HasInstantiation||this.MethodBeingCompiled.OwningType.HasInstantiation))// No generics involved
if(Marshaller.IsMarshallingRequired(this.MethodBeingCompiled.Signature,((MetadataType)this.MethodBeingCompiled.OwningType).Module,this.MethodBeingCompiled.GetUnmanagedCallersOnlyMethodCallingConventions()))// Only blittable arguments
4661
+
if(!isFallbackBodyCompilation&&MarshalHelpers.IsMarshallingRequired(this.MethodBeingCompiled.Signature,((MetadataType)this.MethodBeingCompiled.OwningType).Module))// Only blittable arguments
Copy file name to clipboardExpand all lines: src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -971,5 +971,10 @@ public static bool IsRuntimeMarshallingEnabled(ModuleDesc module)
971
971
{
972
972
returnmodule.Assemblyis not EcmaAssemblyassembly||!assembly.HasAssemblyCustomAttribute("System.Runtime.CompilerServices","DisableRuntimeMarshallingAttribute");
Copy file name to clipboardExpand all lines: src/tests/Interop/DisabledRuntimeMarshalling/DisabledRuntimeMarshalling_Disabled_NativeAssemblyEnabled.csproj
0 commit comments