fix(native): read grep files into stable snapshots

Replace mmap-backed native grep reads with bounded owned reads so concurrently rewritten files cannot fault the process or mutate captured search bytes.

Add a regression for oversized prefix snapshots and remove the direct memmap2 dependency. Fix existing pi-natives doc-markdown warnings so the native clippy gate passes.

Fixes #5205
This commit is contained in:
roboomp
2026-07-11 16:30:08 +00:00
parent c6b83c1d96
commit b87cfc7e1d
6 changed files with 49 additions and 72 deletions
-4
View File
@@ -237,10 +237,6 @@ smallvec = { version = "1.15.1", features = [
# ──────────────────────────────────────────────────────────────────────────────
xxhash-rust = { version = "0.8", features = ["xxh64"] }
# ──────────────────────────────────────────────────────────────────────────────
# Memory Mapping
# ──────────────────────────────────────────────────────────────────────────────
memmap2 = "0.9"
# ──────────────────────────────────────────────────────────────────────────────
# System & Platform