Repository navigation
Migrate Windows FFM classes to arena call helpers - #3289
Conversation
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.
|
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 (4)
📜 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 comments (4)
📝 WalkthroughWalkthroughFour Windows FFM platform classes standardize arena allocation and error handling by replacing manual ChangesFFM Arena Helper Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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 |
Migrate simple
try (Arena) { ... } catch (Throwable)patterns in Windows FFM classes to use the centralized arena call helpers fromForeignFunctions, consistent with the Linux (#3285) and macOS (#3287) migrations.Migrated methods:
WindowsGlobalMemoryFFM.readPerfInfo()→callInArenaOrDefaultWindowsVirtualMemoryFFM.querySwapTotalVirtMaxVirtUsed()→callInArenaOrDefaultWindowsNetworkIfFFM.updateAttributes()→callInArenaBooleanOrDefaultWindowsOperatingSystemFFM.getPerformanceInfoField()→callInArenaIntOrDefaultMethods requiring handle/resource closing in
finallyblocks are deferred for a future refactoring pass.Summary by CodeRabbit