Ruby Core Updates: JIT Correctness and a Same-Day Revert

Ruby's two JIT compilers, ZJIT and YJIT, both landed correctness fixes today for cases where cached assumptions about arguments didn't match reality, while a merged Array feature got pulled back out hours later after edge case concerns.

Duration: PT2M29S

Episode overview

This episode is a short developer briefing from Ruby Core Updates.

It explains recent repository work in plain language.

  • Show: Ruby Core Updates
  • Published: 2026-07-25T13:07:46Z
  • Audio duration: PT2M29S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning. It's July 25th, 2026, and this is Ruby Core Updates.

Today's clearest signal: both of Ruby's JIT compilers shipped fixes for the same class of bug — making optimistic assumptions about method arguments that don't hold in every case.

In ZJIT, nozomemein's PR 18063 fixes trivial inlining for optional arguments. The compiler was inlining default-value initialization code even when the caller actually passed a value — meaning a method could silently return the wrong result. A companion PR, 18061, extends ZJIT's "SendDirect" fast path to handle…

Meanwhile in YJIT, nobu's PR 17972 fixes a related issue with forwarding methods — the ones that pass call arguments straight through. YJIT was mapping caller argument types onto local variable slots that were actually uninitialized, which could crash context verification when code garbage collection was enabled.…

The throughline: as these JITs get more aggressive about specialization, edge cases around optional arguments, keywords, and forwarding are where correctness bugs hide. Worth remembering if you're touching call-site optimization code.

Second theme: quick reversals. Fatkodima's Array 'hash and rindex' offset feature, PR…

Nearby episodes from Ruby Core Updates

  1. JIT Precision and Documentation Cleanup
  2. Weekly Recap - ZJIT Performance Push and a Documentation Overhaul
  3. The Great Documentation Correction
  4. Garbage Collector Cleanup and Build Chain Fixes
  5. ZJIT's Speed Push and a Windows Cleanup Wave
  6. Memory Safety Sweep
  7. Paths, Quotes, and Longjmp Landmines
  8. Boot Time and the Struct Layout Trade-off