Repository navigation
Fix ActiveJob equality, log rendering, and continuation scopes - #395
Conversation
284km
left a comment
There was a problem hiding this comment.
Reviewed exact head ade719e against current main/base 856e61b, including the equality-routing helpers, Array#join conversion/fallback, and captured nesting restoration on normal and exceptional paths. No new actionable finding in these three fixes. The regressions exercise object/Time Range endpoints in nested containers, Hash overrides and non-String fallback without calling user object_id, encoding/refinement controls, and nested versus qualified lexical module openings.
Independent focused validation: all 24 exact stdout/stderr/exit comparisons pass against clean Ruby 4.0.10 (a704b7cd95), across corpora 948/955/1009, evaluator/VM flags, Hash index on/off and GC stress 32 on/off. All six corresponding current-main engine controls reproduce the gaps. The method-table write guard passes. I reused the author's ordinary O2 candidate binary (SHA-256 55f31f7f983b26120184e294b9ff6603ada3fadda257981eff5f1e263d5c1660) only after verifying 736 tracked source/build inputs, imported mgz source bytes and the recorded binary digest. A fresh emission with the clean pinned compiler 9dec2ff687a08433247dbdb7729bc19c8522e538 is byte-identical to that build's 63,865,507-byte C (SHA-256 5870287bfc38c50d0adb84b670db8b4f5c6acdebcacccc8d27467cfb09d585ac). Current-main controls also use an existing O2 binary after independently matching 736 inputs to the fetched main tree. These are reused builds, not fresh native compilations.
I did not independently rerun the full corpus, original CRuby whole files, full Rails components, or platform/RSS/performance acceptance. The reported Array resource limit, Module VM timeout, eval skip and AMQP loader/incomplete inventory remain unresolved evidence; focused passes do not clear them. Hosted Linux build, reference tests and a macOS gem suite are still running; other macOS jobs remain queued. No merge: hold_all_merges/new_failure_review_required remains active, and running tests/missing downstream coverage are outside the runner-queue exception. COMMENT because the authenticated account owns the PR.
284km
left a comment
There was a problem hiding this comment.
Review of ade719e. The runtime is 42e57da; ade719e adds only the loop note and the JSON record. I ran a clean build of 42e57da whose SHA-256 equals the record's binary_sha256 (55f31f7f…). The controls were main 491cc5c (the merge base) and current main 856e61b. The reference was tools/ref_ruby.sh (4.0.10).
Summary: the three changes are correct for every case I tried, on both engines and under GC stress, and I found no behavior that is worse than main. Two Minor findings are about cost and scope, not correctness. Two Suggestions are pre-existing gaps next to the new code.
What I ran
- Corpus 948 / 955 / 1009 at this head: match the reference on the evaluator, on the VM (
MERE_RUBY_VM=strict), withMERE_RUBY_GC_STRESS=32on both engines, and withMERE_RUBY_NO_HASH_INDEX=1on both engines. All three differ from the reference on 491cc5c and 856e61b, on both engines. (These are additions to existing corpus files, not new files. The numbers do not collide.) - 556 corpus programs that use
join, ranges,class_eval/module_eval/class_exec,Class.newwith a block, orModule.nesting, on both engines: no program matches main and fails on this head. On the evaluator all 556 match. On the VM, six programs (335, 338, 342, 400, 452, 815) differ, and they differ the same way on main 491cc5c. They depend on ARGV, stdin, the command line or require paths, which my simple harness does not set up the way run_corpus.sh does. So they are harness artifacts, not findings. - Extra probes against the reference, all the same on both engines:
- Nesting. A block stored in a class body and later run by another class's
class_eval,Class.new(&blk),Struct.new/Data.define/Module.newblocks, an ActiveSupport::Concern-styleincludedblock, blocks nested in blocks,define_methodin a stored block, constant definition in a stored block (still lexical),@@cvarin a stored def, and refinements active in the defining class body. All match Ruby. Several were wrong on main ([:baz, [Baz]]instead of[:bar, [Bar]]; the concern case) and are fixed. Blocks written in a method keep the old behavior. - Range in containers. Time, Integer and String endpoints, user endpoint classes, ranges whose endpoints contain the ranges themselves (no hang,
truelike Ruby), Struct members,flatten. Fixed on this head (Struct and flatten were false on main). - Join. Recursive hashes, non-ASCII keys (now UTF-8 like Ruby, was a broken US-ASCII string on main), objects with
inspectinside a hash, anonymous Hash subclasses whoseto_sis not a String (#<#<Class:0x…>:0x…>, binary), non-ASCII class names (UTF-8),superin a subclassto_s, a raisingto_s(propagates), mixed encodings. All match Ruby. Main differed on most of them.
- Nesting. A block stored in a class body and later run by another class's
Findings
- Minor (cost):
Array#==on arrays that hold Ranges is noticeably slower (inline onelem_has_user_eq). - Minor (cost, expected):
[hash].joinnow dispatchesHash#to_s. Per operation (difference between 0 and 20,000 iterations, three runs, instructions retired, main 491cc5c → this head):[{a: 1, b: :c}].join: about 26.1k → 36.3k on the evaluator (+38–40%), about 22.2k → 32.8k on the VM (+45–50%).- A direct
h.to_scosts about 25k on both builds, so this is the price of asking the method. Ruby requires that. - The PR's whole-process +1.0% / +1.16% for 1,000 joins agrees (about 10k extra per join). I note it because the PR text says no per-operation claim is made. The per-operation number is about +40%, and it is fine to say so.
- Joins of Strings, Symbols, numbers and nil are unchanged (within ±2%).
- Suggestion (pre-existing, same family): other
Arraymethods still compare Time-ended ranges structurally. Witht1 = Time.at(1); t2 = Time.at(1), Ruby gives[t1..].index(t2..) == 0,[t1..] - [t2..] == [],[[t1.., 1]].assoc(t2..)→ the pair, and[[1, t1..]].rassoc(t2..)→ the pair. This head gives nil,[t1..], nil, nil (main is the same).include?is now true, soinclude?andindexdisagree on the same array. ActiveJob does not need these, so a follow-up is fine. - Suggestion (pre-existing): in the new
VHsharm ofjoin, Ruby asksto_str, thento_ary, thento_sfor every element that is not a String or an Array (ary_join_1). Withclass H1 < Hash; def to_str = "STR"; end,[H1.new].joinis"STR"in Ruby and"{}"here. Withdef to_ary = ["x", "y"]andjoin("-"), Ruby gives"x-y". Main is the same. TheVObjarm already has that order, so the new arm could share it. Unrelated and out of scope: singleton methods on a Hash value (def h.to_s) are not dispatched at all, even forh.to_s.
Also unchanged from main (not regressions, noted only so they are not attributed to this PR): Module.nesting in a block stored inside class << self is [] (Ruby: [#<Class:Outer>, Outer]); Module.nesting in string class_eval is []; [1..2].eql?([1.0..2.0]) is true (Ruby: false).
Record
binary_sha256matches the binary I ran.main_case_comparisonlists no lost main PASS for any core file. The 83/38 → 121/0 split agrees with the per-selection table (continuation 0/30 → 30/0, arguments-and-logging 83/8 → 91/0).- Note for anyone reproducing it: the record was made with runner
7dd171fe, which is #396'srails-argument-descriptionspolicy. Three of the 91 argument tests are the clock-named Range cases. With theliteralpolicy of this PR's own runner, they show as MISSING + EXTRA, not MATCH. The PR text says this, but the 121 MATCH depends on #396. - I did not rerun the Rails files, core test files or the RSS pairs.
Local results posted by the author
Yes: corpus --both 1031/1031, VM corpus 1031/0/0, the boundary matrix, core files compared with main on both engines, the targeted Rails files, RSS pairs and instruction counts.
Mergeability
GitHub reports MERGEABLE against main 856e61b. #256, which landed after the base, touches other areas of main.mere. I did not build the merge result.
CI at ade719e: Rails measurement harness, NKF Wasm engine, Linux build dependency controls, Additional gem suites and Gem suites passed. CI, Small pure Ruby gem suites, Runtime load path controls and Rake were queued, and Delegation/URI was running, when I posted.
| (match h with | ||
| | VObj _ -> if has_own_eq world h || exc_cmp_val world h then true else elem_has_user_eq world t | ||
| | VExc (_, _) -> if exc_cmp_val world h then true else elem_has_user_eq world t | ||
| | VRange (lo9, hi9, _) -> |
There was a problem hiding this comment.
Minor (cost). This arm makes Array#== walk each Range's endpoints through arr_has_obj_d. For a String endpoint, that reaches prim_eq_override, which builds an hng_key string ("str:" ++ …) and does a map lookup. The plain String arm of elem_has_user_eq skips that check.
Instructions per a == b (0 vs 20,000 iterations, two or three runs, main 491cc5c → this head):
["a".."b"] == ["a".."b"]: about 15.4k → 20.3k on the evaluator (+30–35%), about 12.1k → 17.6k on the VM (+45–47%).[1..2, 3..4, 5..6] == [same]: +12–18% on both engines.[1..2, 3..4, "a".."b"]: +43–55%.- Plain Integer or String arrays: unchanged.
The result is still correct. The check is needed for a String endpoint with a singleton ==. But the common case could be cheap: hng_key_q answers "" without building the key when the value never got a singleton. Using it in prim_eq_override, or in the endpoint check here, should remove most of this. Not blocking if arrays of ranges are rare on hot paths.
There was a problem hiding this comment.
Acknowledged as the nonblocking cost finding described in this thread. I added your per-operation Range-array numbers and their distinction from my startup-inclusive medians to the PR description, together with the required Hash#to_s dispatch cost. The endpoint-aware route is needed for Time/user equality; plain-array controls remain unchanged. I am keeping this correctness change narrow and leaving the broader hng_key_q optimization outside this PR, without claiming zero cost. The existing literal/array-operation gaps remain pre-existing follow-up suggestions. The separate Linux CI failure is being compared with current main using the original test and bounds; no acceptance or merge is requested while that is unresolved.
There was a problem hiding this comment.
Implemented locally in9e611af4: prim_eq_override now uses the nonallocating hng_key_q, with Integer-ended Range and String-subclass/singleton-equality controls. Full corpus and VM corpus passed; I am batching the push until the queued gates, related core files, fresh-native targeted Rails checks and three RSS pairs finish. The PR description now places the per-call Hash-join cost directly below the whole-process table. The local JSON record explicitly identifies the3of121 clock-policy-dependent rows; that record change will go in the same code push. No merge is requested before exact-head re-review and owner hold clearance.
There was a problem hiding this comment.
Pushed the batched follow-up at90dbe7d98c26c7a88f0dc12b61c7a31bd0401701. All three requested items are addressed: hng_key_q replaces allocating primitive equality probes; the per-call Hash-join cost is beside the startup-inclusive1percent figures; the original record explicitly identifies3of121clock-policy-dependent rows. New String-subclass/singleton equality controls remain passing. Full corpus1031/1031 both hash modes; VM1031/0fallback/0differences;12gates and explicit changed-record hygiene pass. Range67 and Hash298 cases COMPLETE on all five sides, no previous PASS lost. Fresh-native targeted Rails controls remain121MATCH/0other on both engines, all COMPLETE. Three large-file158-case RSS pairs: evaluator median+2.26percent, VM+0.71percent, overlapping sample ranges; raw samples and residual4–8percent Range cost versus main are in the new evidence. Code and record commits were pushed together once. Please re-review this exact head; no merge-hold release or new-head CI pass is inferred.
| | _ -> app e0 (to_s h) "US-ASCII") | ||
| // Hash#to_s inspects its members through the object world. | ||
| // The leaf printer loses a nested object's class/ivars. | ||
| | VHsh hid -> |
There was a problem hiding this comment.
Suggestion (pre-existing). Ruby's ary_join_1 asks to_str, then to_ary, then to_s for every element that is not a String or an Array, Hash subclasses included:
class H1 < Hash; def to_str = "STR"; end; [H1.new].joinis"STR".class H2 < Hash; def to_ary = ["x", "y"]; end; [H2.new].join("-")is"x-y".
This arm goes straight to to_s, so both give "{}" here (main is the same). The VObj arm above already follows Ruby's order and could be reused.
284km
left a comment
There was a problem hiding this comment.
CI follow-up for unchanged head ade719e. The earlier exact-head code review and its focused validation remain applicable; I am not duplicating its findings or claiming a new runtime validation run.
The subsequently completed Linux job failed in the complete upstream Module/resource check: https://github.com/284km/mere-ruby/actions/runs/46094967465/job/140824119051 . I downloaded and read its original Module log, durable case inventory and provenance. All 195 cases were discovered, but the result is 1,234 assertions, 0 failures and 2 errors: inner 10-second timeouts in TestModule#test_iclass_memory_leak and TestModule#test_complemented_method_entry_memory_leak. The outer 600-second / 2-GiB guard was not hit (37.027 seconds; peak 289,732 KiB).
Comparison with the recorded main failure, run 46028215730/job 140636609749: that original file had 195 tests / 1,237 assertions / 1 error, with only test_iclass_memory_leak timing out; test_complemented_method_entry_memory_leak passed. Both reports identify the same upstream test SHA-256 6b9b0fe714d15e2d08ac9ac6954b5f429754b2507eec2960b9544bc54eb8cdbc, compiler 9dec2ff687a08433247dbdb7729bc19c8522e538 and unchanged bounds. Their application revisions differ (candidate CI source bfb0d6e; historical main 40b2563), so this is an additional observed failing case, not proof this PR caused it. Preserve both observations and compare the original complete check on the exact current-main integration on Linux before acceptance; do not widen the bound or treat all Module failures as the same baseline.
No merge. The all-merge/new-failure hold remains active; latest main CI 46098285983 at a2f2e37 was pending with no jobs exposed when inspected, and candidate macOS/downstream coverage is unfinished. An executed failure and an unexplained additional failed identity are outside the runner-queue exception. The existing local reported Module VM timeout is not a substitute for this Linux CI comparison.
|
Paired original Module/resource check on current-main integration is complete. The original hosted395 failure remains preserved: bfb0d6e,195tests/1234assertions/0F/2E, inner10s Timeouts in iclass_memory_leak and complemented_method_entry_memory_leak; no outer limit. #396's separate dcb29e7 integration passed195/1240/0F0E, and is not used as a substitute for395. Fresh paired builds: main0f0413c5 and its conflict-free merge with395 head ade719e (private integration70bef505; parents are public). Compiler9dec2ff6, mgz661a01d8, clean Ruby4.0.10/a704b7cd95, Prism1.8.2,84 default/bundled specs and0 extras. Canonical O2 build and unchanged tools/class_module_check.py, exact upstream test SHA2566b9b0fe714d15e2d08ac9ac6954b5f429754b2507eec2960b9544bc54eb8cdbc. Platform qualification: native Linux aarch64 / Debian13 / clang19, not the hosted Ubuntu24 x86-64 machine. These are additional comparison observations, not a claim that the original hosted CI rerun passed.
All6original files COMPLETE; no skipped or omitted test, changed assertion, GC debug flag or relaxed bound. Each original inner leak deadline remains10s; outer bounds remain600s/2GiB. The six case inventories, raw logs, binary/C/header hashes, original hosted artifacts and platform provenance are retained. Main and candidate native binary hashes:
This did not reproduce a new failing identity in the current-main integration on this Linux platform. The earlier hosted failure and architecture difference remain explicit; this comparison does not release hold_all_merges/new_failure_review_required. I am not self-merging or treating queued/pending hosted coverage as passed. |
|
Pushed55f519ede231dc13f423f94bf723c3c6d0bfdba4 in one code+evidence push. Runtime42e57da3 is unchanged. This fixes the additional396 corpus job failure in clean reference Ruby4.0.10 ISeq#disasm by constructing the identical Unicode-named subclass dynamically. Original/new runtime output is identical; all8 evaluator/VM × Hash × GC32 comparisons pass. Whole-file ISeq1031/1031same with zero skips/differences/format/errors. Corpus--both1031/1031; VM1031/0fallback/0FAIL/0list differences;12gates and changed-record hygiene pass. A fresh9dec C emission is byte-identical to the reused O2 binary's recorded C. Full provenance and earlier wrapper refusals are retained in the new record. Please re-review this exact head. This fixes only the reference-disassembly corpus failure. The preserved hosted Module timeouts,396 Method-copy memory failure and global owner hold remain open; no merge or passing hosted-CI claim. |
284km
left a comment
There was a problem hiding this comment.
Re-reviewed exact head 55f519ede231dc13f423f94bf723c3c6d0bfdba4, including the existing reviews, inline responses and Module/CI follow-ups. No new actionable findings. Since reviewed head ade719e3, only corpus1009, its loop note and the new evidence record changed. The fixture still exercises the same Unicode-named Hash subclass, inherited non-String to_s, native identity fallback and UTF-8 result; no assertion or harness comparison is removed. Interpreter/build inputs are unchanged. The previously reported nonblocking Range-array cost and pre-existing conversion suggestions remain acknowledged follow-ups, not new findings.
Independent validation with clean reference Ruby 4.0.10 (a704b7cd95): the original whole-file comparison reproduces Encoding::CompatibilityError in reference ISeq#disasm; the updated file passes. Original/updated reference execution has identical exit status, stdout and stderr. The unchanged whole-file ISeq harness passes all 1,031 corpus files: 1,031 same, zero refused/different/disassembly differences/errors. All eight updated-fixture comparisons pass on evaluator/strict VM × Hash index on/off × GC stress32 on/off, including the Unicode name/encoding and raising-object_id controls. Diff whitespace and changed-record hygiene checks pass.
For those eight interpreter comparisons I reused the existing ordinary O2 runtime42 binary, after matching 582 tracked runtime/build inputs to this checkout, comparing the imported mgz files to pinned commit 661a01d8, and verifying the binary SHA-256 55f31f7f983b26120184e294b9ff6603ada3fadda257981eff5f1e263d5c1660 and recorded emitted-C hash. This is verified build reuse, not a fresh native build or compiler emission. I did not rerun full interpreter corpus, original CRuby/Rails files, native installation, performance or resource acceptance; their earlier records remain separately qualified evidence.
The specific reference-disassembly fixture failure is fixed locally. No merge: the original hosted Ubuntu Module timeouts remain preserved, and the author's six successful Debian arm64 paired checks do not establish an Ubuntu x86-64 pass. #396's distinct Method-copy RSS failure is also retained. hold_all_merges / new_failure_review_required remain active, including for already-reviewed candidates. This review does not clear those holds or attribute the failures to this fixture. GitHub currently reports base 856e61ba; fetched main is 8657f5b2, and I have not validated their prospective integration. Current-head Linux build and macOS gem tests are running, reference/corpus and other macOS work are queued, and downstream core matrices are unfinished. Latest main CI 46122910194 is pending with no jobs exposed, not accepted as passing. COMMENT because the authenticated reviewer owns the PR.
CI rechecked immediately before posting: QUEUED: runtime-load-path (macos-15), Additional upstream gem tests / macos-26, Upstream Rake tests / macos-26, Small upstream gem tests / macos-26, unittest-reference, corpus; SUCCESS: Additional upstream gem tests / ubuntu-24.04, unittest-harness, Delegation and URI tests / ubuntu-24.04, Upstream gem tests / ubuntu-24.04, linux-build-deps, reactor, harness, Upstream Rake tests / ubuntu-24.04, Small upstream gem tests / ubuntu-24.04, runtime-load-path (ubuntu-24.04), unittest-plan, build-macos; IN_PROGRESS: Delegation and URI tests / macos-26, Upstream gem tests / macos-26, build-linux. These are observed statuses, not a queue-exception acceptance.
284km
left a comment
There was a problem hiding this comment.
Re-reviewed ade719e3..55f519ed: only corpus 1009, which now builds the Unicode-named subclass dynamically so the reference ISeq disassembly stays comparable, and the new record. The interpreter is unchanged. No new findings from this delta.
Still open from my earlier review (#395 (review)), so still blocking:
- [Minor, cost]
Array#==passing Range endpoints toprim_eq_overridebuilds a key withhng_key. That costs +30–47% per comparison for String Ranges and +12–18% for Integer Ranges. Please use a non-allocating key on this path, or give the reason it cannot. - [Minor, cost]
[hash].joingoes from ~26k to ~36k instructions per call (+38–50%). The semantics are needed; please put the per-call number in the body next to the whole-run +1%. - Note: 3 of the record's 121 MATCH rows (clock names) depend on #396's runner policy. Please say so in the record, or move them to #396.
After those, this can merge once the automated reviewer has seen the head. Then #396 and #399 follow with their bases changed to main.
|
Hosted Ubuntu Module follow-up: I downloaded the original successful The measured source is the Actions merge commit23f7be6c8cdf5c3897686cde3f3261f2d5ffa4a6. GitHub's commit API confirms its parents: current-main8657f5b2 and this PR head55f519ed. Binary SHAed5b3d0894fba7079444e79406e43c4d3b7457053e7f700df564d3bd8c4ccf17. Original hosted job. This is an actual hosted Ubuntu observation for that integration, distinct from the earlier Debian-arm64 local pairs. The earlier two-timeout CI failure remains preserved; no causal attribution or global hold release is inferred. The Range cost follow-up is still local and will need its own exact-head review after the remaining local resource checks. Other current-head CI checks are unfinished. |
284km
left a comment
There was a problem hiding this comment.
Re-reviewed 55f519ed..90dbe7d9 against my open items. All three are resolved.
- Range equality cost: fixed.
prim_eq_overridenow useshng_key_q, which does not allocate a key for a value that has no singleton.arr_has_obj_dskips the endpoint list for Integer-ended Ranges, which cannot carry an equality override.- The per-call overhead drops from +12–47% to +4.4–8.1% across the String / Integer / mixed Range rows on both engines.
- Corpus 948 adds String-subclass and singleton endpoint equality, so the override path is still exercised.
[hash].joinper-call cost: stated in the body (+40.5%, evaluator). The semantics require it.- Clock rows: stated. The record and the body both say that 3 of the 121 MATCH rows need #396's validated policy.
No further findings from me. This merges once the automated reviewer has seen this head. Then #396 and #399 follow, each with its base changed to main.
284km
left a comment
There was a problem hiding this comment.
Automated follow-up review of exact head 90dbe7d, including the earlier reviews and responses: all three requested follow-ups are addressed. prim_eq_override uses the existing nonallocating hng_key_q probe, Integer-ended Ranges avoid the temporary endpoint list, the Hash-join per-operation cost is disclosed separately from startup-inclusive measurements, and the original record explicitly identifies the three clock-name rows that require #396. No remaining or new actionable code finding in this delta.
Independent validation: 24/24 comparisons of corpus948/955/1009 match clean Ruby 4.0.10 a704b7cd95 / Prism 1.8.2 on evaluator/strict VM × Hash index on/off × GC stress32 on/off. Eight additional mode combinations cover equal/unequal, Integer/big-Integer, mixed, nested and exclusive-ended Range containers across explicit collections; all match. I verified hng_put/hng_drop maintain the indexes used by hng_key_q. The new instruction medians and percentages recompute from the retained raw pairs, and the recorded 67 Range / 298 Hash identities lose no previous PASS on either engine. Changed-record hygiene and diff checks pass. The latter record checks audit recorded evidence, not reruns of those complete core/Rails/resource workloads.
Build reuse: matched 710 tracked source/build/tool inputs byte for byte to the existing ordinary O2 runtime9e build, verified all seven mgz Mere files against pinned 661a01d8 Git blobs, and checked emitted-C SHA e7134a60 and binary SHA f32bd5a4c748da4099481f49b73a05995f23757d16a497cfe4386bed654e0cd1. Copied that verified binary into the private review checkout. No new compiler emission/native build, full corpus/core/Rails sweep or resource acceptance is claimed.
Current CI has a real failure: build-linux job 140982713500 in run46146138864 stops before corpus execution because strbuf_region_check rejects read_path_whole/read_path_at in m_state.mere (and their emitted-C counterparts). Its tested integration is 330ce99 (main db5486c + this head); the subsequent Linux VM corpus and Module/resource execution steps were skipped. I independently reproduced the same two source findings on current main e0b1179 alone and its conflict-free prospective merge with this head. Those functions are unchanged by this PR, so this is a shared main baseline failure, not a new inline finding against this delta. This source-only comparison does not establish native integration or memory acceptance. The older Module/Method failures and later specifically qualified passing observations remain preserved.
No merge: genuine CI failure, incomplete corpus/downstream coverage, and the recorded hold_all_merges/new_failure_review_required remain. Latest main run46147383765 is pending with no jobs exposed at inspection, not passing evidence. COMMENT because the authenticated reviewer owns this PR.
ActiveJob lost Time-ended Range equality inside containers, rendered nested Hash log values through the leaf printer, and lost lexical constants in continuation methods defined by stored concern blocks. Dispatch endpoint equality and Hash conversion through their methods, and restore captured class/module-body nesting.
The review follow-up uses
hng_key_qfor primitive equality probes and avoids endpoint-list allocation for Integer-ended Ranges inarr_has_obj_d. Corpus948 covers String-subclass and singleton equality. The original JSON record now explicitly identifies the three clock-name rows that depend on #396.Clean reference:
tools/ref_ruby.sh, Ruby4.0.10 revisiona704b7cd95, Prism1.8.2, zero extra gems. Compiler9dec2ff6; mgz661a01d8. Follow-up runtime9e611af4; publication head 90dbe7d adds evidence only.run_corpus.sh --both:1031/1031, hash indexes ON/OFF. VM:1031VM/0fallback/0differences.test_range67 andtest_hash298 cases COMPLETE on reference, before/after evaluator and before/after VM. No previous PASS lost.Instructions retired, net per operation including loop instructions, median of three alternating 0-versus20,000-iteration pairs:
The earlier startup-inclusive whole-process Hash-join medians were+1.00% evaluator/+1.16% VM for1,000 joins. Per join, the table shows approximately26.2k→36.8k (+40.49%) evaluator and28.2k→38.7k (+37.52%) VM. Ruby requires the Hash#to_s dispatch; a1% whole-process change is not a1% per-call claim. Range costs improve about17–20% for String/mixed Ranges versus original42, with4–8% residual cost versus main. All three samples are retained; no zero-cost claim.
Large-file max RSS,
activesupport/test/json/encoding_test.rb:158MATCH in all12 follow-up runs, normal O2/GC, seed12345, jobs2,600s/2GiB per file family; fresh native installations for the exact before42/after9e binaries. Three alternating pairs:Sample ranges overlap; no stable memory improvement is claimed. Original main491→42 RSS pairs remain separate in the original record.
Loop record · Original evidence · Cost follow-up evidence
The reference ISeq corpus1009 fixture failure was fixed in55f519ed without removing assertions:1031same/0refused/0differences/0format/0errors. The earlier executed hosted failures remain preserved. A later hosted Ubuntu Module observation, integration23f7be6c(main8657+head55), passed195tests/1240assertions/0failures/0errors under unchanged original bounds. The later Method-copy observation uses a changed main check and is not a replay of #396's old2.16719 failure.
#396 carries the framework inputs/clock policy; #399 separately fixes the AMQP loader. Final component sweeps are separate measurements. Nearby Array index/difference/assoc and Hash to_str/to_ary gaps remain pre-existing suggestions outside these three fixes.
Exact-head automated re-review and owner acceptance/merge-hold clearance remain required. No new-head hosted CI pass or self-merge is claimed.