[IO_URING] Accept immutable buffers for unregistered writes #402
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.35) × (1 − Review Confidence (0.88)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 126 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.96 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.290
Real PR Conversation Timeline
2 items
While we are here can we add doc comments to these methods. Also I am thinking that we should deprecate the other methods since they are just wrong. @jrflat WDYT about deprecating?
FranzBusch
rksharma-owg
IORing.Request.writerequired mutable buffers even though a write only reads from them. AddUnsafeRawBufferPointeroverloads for both ordinary file descriptors and registered file slots, retaining the existing mutable-buffer signatures and function references.The new overloads use the existing write request encoder. Their documentation explains buffer lifetime, offsets, completion context and partial writes. Regression tests check the resulting operation, descriptor, address, length, offset and context. A real io_uring pipe test writes an immutable buffer and verifies the received bytes.
Local Linux ARM64 Swift 6.4 validation passed: 81 XCTest cases and 7 Swift Testing tests, including real io_uring execution. The immutable-buffer tests fail to compile before the overloads are added. Mutable function references and inferred buffer-construction calls compile with the fix.
The cloud API breakage check passes against the refreshed target branch.
Fork preflight passed all 49 enabled jobs for
92481cc05652e561623eb32c1411d5d2e4b7fd4dagainst486d48c80fce32823218000cf8563d9b4bbbf4a9: Linux, macOS, Windows, FreeBSD, Android emulator tests, static Linux/Wasm SDK builds, ABI-stable macOS builds, CMake and applicable soundness/API checks. Standard container runs skip io_uring when unavailable; the separate kernel write/read-back job executed and passed. Upstream-disabled checks remain inapplicable.Fixes #400.