Repository navigation
[CoreFoundation] Match native dispatch void return types. - #27313
rolfbjarne wants to merge 1 commit into
Conversation
The dispatch retain/release/main functions and six dispatch source operations return void in the Apple headers. Their private imports incorrectly declared IntPtr returns, although every managed caller already ignores the result. Match the native ABI without changing any public APIs or call behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4c41723a-44ab-4c85-a5f0-5debb01bac3e
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the private CoreFoundation dispatch return-type corrections.
No open issues 🎉
What changed in this PR
Corrects nine private CoreFoundation dispatch imports to return void, matching Apple’s native signatures without changing public APIs or managed call behavior.
Changes:
- Updates dispatch retain, release, and main imports.
- Updates six dispatch source operations, including handler registration, data merging, and cancellation.
| File | Description |
|---|---|
src/CoreFoundation/DispatchSource.cs |
Corrects six dispatch source import return types to void. |
src/CoreFoundation/Dispatch.cs |
Corrects dispatch_release, dispatch_retain, and dispatch_main return types to void. |
Review effort: Balanced
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🔥 [CI Build #f649e63] Test results 🔥Test results❌ Tests failed on VSTS: test results 0 tests crashed, 6 tests failed, 211 tests passed. Failures❌ dotnettests tests (macOS)1 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ introspection tests2 tests failed, 2 tests passed.Failed tests
Html Report (VSDrops) Download ❌ Tests on macOS Sonoma (14) tests1 tests failed, 4 tests passed.Failed tests
Html Report (VSDrops) Download ❌ Tests on macOS Sequoia (15) tests1 tests failed, 4 tests passed.Failed tests
Html Report (VSDrops) Download ❌ Tests on macOS Golden Gate (27) tests1 tests failed, 4 tests passed.Failed tests
Html Report (VSDrops) Download Successes✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
|
The dispatch retain/release/main functions and six dispatch source operations return void in the Apple headers. Their private imports incorrectly declared IntPtr returns, although every managed caller already ignores the result. Match the native ABI without changing any public APIs or call behavior.
Note
This pull request description was generated by Copilot.
🤖 Pull request created by Copilot