You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8284055
Browse filesBrowse the repository at this point in the historyBrowse files
feat(pool): MemoryPool view borrow — owner.Memory[.Span] used after Dispose → OWN002 (POOL002)
#72 tracked the MemoryPool OWNER lifecycle (acquire/release: POOL001 leak, POOL003
double-dispose). This adds the VIEW borrow: `owner.Memory` / `owner.Memory.Span` of a
System.Buffers.IMemoryOwner<T> is a borrow of the owner — exactly like `buf.AsSpan()` is
of a Rent'd array. ViewOwner now resolves it (by the IMemoryOwner<T>.Memory property
symbol), so a view-local read after `owner.Dispose()` is a use of the owner after release
-> OWN002 (POOL002), and a returned Memory view dangles. Reuses the whole borrow lattice
— no core changes, extractor + corpus only.
Corpus: memorypool-view-after-dispose (before: `Memory<byte> v = owner.Memory;
owner.Dispose(); Consume(v.Span)` -> OWN002; after: a `using` owner read while alive ->
silent) — the MemoryPool twin of arraypool-span-view-after-return. Benchmark recall floor
16 -> 17. P-007 status + ci.yml comment updated.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rg8kSk1YT14x7A1vo5zgED
0 commit comments