Repository navigation
Conversation
Owner
Author
|
Superseded by already-merged #409 (main 9d1c0f3). I discovered that merge while preparing this independent follow-up; keeping a second implementation would duplicate the same correction. Closing this PR without merge. The retained evidence describes runtime 829cef2 against 5b815b6, not the exact #409/main binary. Subsequent integration measurements will use main’s implementation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The path-read helpers introduced in #373 allocate StrBuf scratch buffers in the default region. Current main fails the existing region gate in both source and generated C (4 findings). Put each buffer in a dedicated region and return only the completed bytes. The regular-sized
read_filefast path is unchanged.Corpus 1027 retains results from bounded file reads, a pipe and a device through arena reuse and collection. No gate allowances or framework expectations change.
Local validation, runtime
829cef2256695c3f3f300b0f7268e283517e3a6bagainst main5b815b660e9e:run_corpus.sh --both: 1040/1040, hash index on/off.test_ioselection: 7 tests / 32 assertions, zero failures/errors/skips on clean Ruby, main and candidate in both engines; all COMPLETE. This is a selection, not the whole file.Peak RSS (KiB), three alternating large-file pairs:
The ranges overlap; these higher medians are not presented as a Rails memory improvement. The repeated 128×1MiB read control shows scratch-buffer RSS medians 161952→103456 KiB (evaluator), 164944→102000 KiB (VM). Net instructions/read including loop and explicit GC rise about 0.44%/0.90% respectively; the lifetime fix is needed for correctness of region ownership and the existing gate.
Reference:
tools/ref_ruby.sh, clean Ruby4.0.10 revisiona704b7cd95a42cc0cf5f307137bf3aac0285b915, Prism1.8.2, 46 default specs, no extras. Compiler9dec2ff687a0, mgz661a01d8bb68. Full portable evidence:railstest/framework/records/path-read-buffer-regions.json; loop note included.Owner merge remains pending exact-head automated review.