Implement heap integrity testing and add PMM stub for memory management#9
Implement heap integrity testing and add PMM stub for memory management#9Zaid-maker merged 2 commits intomainfrom
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds conditional heap test hooks and a host-side heap integrity test binary plus a PMM stub, updates Makefile to build/run these tests and include them in coverage, and documents the new test artifacts and version bump. Changes
Sequence Diagram(s)sequenceDiagram
participant Test as "heap_integrity_test (host)"
participant Heap as "kernel/src/heap (test hooks)"
participant Checker as "heap_check_integrity"
participant PMM as "pmm_stub"
Test->>Heap: heap_debug_seed_chain(sizes, free_flags, count)
Note right of Heap: builds synthetic blocks in test arena
Test->>Heap: (optionally) heap_debug_corrupt_magic/index/misalign/next_regression
Test->>Checker: heap_check_integrity(&report)
Checker->>Heap: read block headers/pointers
Checker->>PMM: (if queried) pmm_get_stats()
Checker-->>Test: report (pass/fail, counters)
Test->>Heap: heap_debug_clear_chain()
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 @@
## main #9 +/- ##
===========================================
- Coverage 99.26% 67.47% -31.80%
===========================================
Files 3 4 +1
Lines 136 289 +153
===========================================
+ Hits 135 195 +60
- Misses 1 94 +93 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit