[.NET/CoreMidi] Use [UnmanagedCallersOnly] instead of [MonoPInvokeCallback] Partial Fix for #10470#15774
Conversation
src/CoreMidi/MidiServices.cs
Outdated
| [SupportedOSPlatform ("macos")] | ||
| #endif | ||
| public class MidiPort : MidiObject { | ||
| public unsafe class MidiPort : MidiObject { |
There was a problem hiding this comment.
In general we try to make the unsafe scope as small as possible, so:
- Mark the P/Invoke as unsafe
- Add an
unsafe {}block around the call to the P/Invoke.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
src/CoreMidi/MidiServices.cs
Outdated
| [SupportedOSPlatform ("macos")] | ||
| #endif | ||
| public class MidiEndpoint : MidiObject { | ||
| public unsafe class MidiEndpoint : MidiObject { |
dalexsoto
left a comment
There was a problem hiding this comment.
👍 After last Rolf's comment is addressed.
🔥 [CI Build] Test results 🔥Test results❌ Tests failed on VSTS: simulator tests 0 tests crashed, 41 tests failed, 4291 tests passed. Failures❌ bcl testsDetails
Html Report (VSDrops) Download ❌ cecil testsDetails
Html Report (VSDrops) Download ❌ dotnettests testsDetails
Html Report (VSDrops) Download ❌ fsharp testsDetails
Html Report (VSDrops) Download ❌ framework testsDetails
Html Report (VSDrops) Download ❌ generator testsDetails
Html Report (VSDrops) Download ❌ interdependent_binding_projects testsDetails
Html Report (VSDrops) Download ❌ install_source testsDetails
Html Report (VSDrops) Download ❌ introspection testsDetails
Html Report (VSDrops) Download ❌ linker testsDetails
Html Report (VSDrops) Download ❌ mac_binding_project testsDetails
|
✅ API diff for current PR / commitLegacy Xamarin (No breaking changes)
NET (empty diffs)
✅ API diff vs stableLegacy Xamarin (No breaking changes).NET (No breaking changes)✅ Generator diffGenerator diff is empty Pipeline on Agent |
💻 [PR Build] Tests on macOS Mac Catalina (10.15) passed 💻✅ All tests on macOS Mac Catalina (10.15) passed. Pipeline on Agent |
❌ [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) failed ❌Failed tests are:
Pipeline on Agent |
Ref: #10470.