Repository navigation
Migrate Linux FFM arena calls to helpers - #3285
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (13)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2026-04-05T15:37:16.042ZApplied to files:
🔇 Additional comments (7)
📝 WalkthroughWalkthroughThis PR refactors seven Linux FFM implementations to use shared callInArena*OrDefault helpers for confined Arena lifecycle and standardized error/default handling, replacing manual Arena.ofConfined() try-with-resources and local catch blocks across CPU, storage, network, USB, power, and process-limit code paths. ChangesFFM Arena Lifecycle Centralization
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3285 +/- ##
============================================
+ Coverage 75.03% 75.11% +0.07%
Complexity 76 76
============================================
Files 410 410
Lines 15871 15848 -23
Branches 2526 2525 -1
============================================
- Hits 11909 11904 -5
+ Misses 2508 2485 -23
- Partials 1454 1459 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d1bc9fe to
58a33fd
Compare
Migrate simple try-Arena-catch-Throwable patterns in Windows FFM classes to use the centralized arena call helpers from ForeignFunctions, consistent with the Linux (#3285) and macOS (#3287) migrations. Migrated methods: - WindowsGlobalMemoryFFM.readPerfInfo() -> callInArenaOrDefault - WindowsVirtualMemoryFFM.querySwapTotalVirtMaxVirtUsed() -> callInArenaOrDefault - WindowsNetworkIfFFM.updateAttributes() -> callInArenaBooleanOrDefault - WindowsOperatingSystemFFM.getPerformanceInfoField() -> callInArenaIntOrDefault Methods requiring handle/resource closing in finally blocks are deferred for a future refactoring pass.
Summary
Testing
Summary by CodeRabbit