Uh oh!
There was an error while loading. Please reload this page.
[wasm] Unmanaged structs are considered blittable if module has DisableRuntimeMarshallingAttribute - #73310
Conversation
maraf
commented
Aug 3, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ghost
commented
Aug 3, 2022
Tagging subscribers to 'arch-wasm': @lewing |
jkoritzinsky
commented
Aug 3, 2022
This is not entirely true. An unmanaged struct defined in an assembly with DisableRuntimeMarshalling isn't necessarily blittable if it is used in a P/Invoke in an assembly without DisableRuntimeMarshallingAttribute. |
…leRuntimeMarshallingAttribute.
e32a7b8 to
4e044cfComparemaraf
commented
Aug 4, 2022
Thanks! |
jkoritzinsky
commented
Aug 4, 2022
Only the P/Invoke assembly must be marked with the attribute. |
… pinvoke method is declared.
maraf
commented
Aug 5, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
maraf
commented
Aug 5, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
maraf
commented
Aug 9, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…rDisableRuntimeMarshalling
maraf
commented
Aug 9, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Ankit Jain <radical@gmail.com>
maraf
commented
Aug 12, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…isableRuntimeMarshalling
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
radical
commented
Aug 14, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
.. callbacks with function pointers.
…isableRuntimeMarshalling
radical
commented
Aug 15, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
radical
commented
Aug 15, 2022
radical
commented
Aug 15, 2022
The Linux_musl x64 coreclr failure is #73930 . |
| { | ||
| _assemblyDisableRuntimeMarshallingAttributeCache[assembly] = value = assembly | ||
| .GetCustomAttributesData() | ||
| .Any(d => d.AttributeType.Name == "DisableRuntimeMarshallingAttribute"); |
There was a problem hiding this comment.
can use nameof(DisableRuntimeMarshallingAttribute) with using System.Runtime.CompilerServices;
There was a problem hiding this comment.
The assembly is also compiled for net47 and the attribute is not available there.
Consider all types in pinvokes from assembly marked with
DisableRuntimeMarshallingAttributeas blittable.Based on API proposal in #60639.
Fixes#61146.