[Foundation] Improve NSObject_Disposer a bit. - #26361
Conversation
* Remove unnecessary accesibility modifier ('private').
* Remove the unused 'drainHandle' field.
* Remove the [Preserve] attribute, it's no longer needed.
There was a problem hiding this comment.
Pull request overview
This PR aims to simplify the NSObject_Disposer helper inside Foundation.NSObject by removing unused/internal-only constructs, reducing clutter in the core Foundation runtime bindings.
Changes:
- Removes the
[Preserve (AllMembers = true)]attribute from the__NSObject_Disposerhelper type. - Removes the unused
drainHandlefield (MONOMAC-only). - Removes the explicit
privateaccessibility modifier from theNSObject_Disposerconstructor (keeps it non-instantiable).
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.
This comment has been minimized.
This comment has been minimized.
|
✅ 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 |
This comment has been minimized.
This comment has been minimized.
🔥 [CI Build #af3198c] Test results 🔥Test results❌ Tests failed on VSTS: test results 1 tests crashed, 0 tests failed, 198 tests passed. Failures❌ Tests on macOS Sonoma (14) tests🔥 Failed catastrophically on VSTS: test results - mac_sonoma (no summary found). Html Report (VSDrops) Download Successes✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
[Preserve]attribute with a targeted[DynamicDependency]attribute. This results in rather drastic size savings for NativeAOT apps (300-500kb/up to 10% smaller, depending on platform).