General

Profile

alanwu (Alan Wu)

  • Login: alanwu
  • Registered on: 10/28/2018
  • Last sign in: 10/21/2026

Issues

open closed Total
Assigned issues 4 33 37
Reported issues 4 51 55

Projects

Project Roles Registered on
Ruby Committer 03/19/2021

Activity

11/17/2026

05:00 PM Ruby Bug #22562 (Open): Type confusion SEGV: Using `super`, `instance_exec`, and `bind_call`, it is possible to run Array#first on an instance of Integer
The following crashes 3.3.0 through current trunk (commit:caf4f279d1):
```ruby
module M
# fixnum: (0x6f56<<1)+1 = 0xdead
def first = 0x6f56.instance_exec { super }
end
M.instance_method(:first).bind_call([])
# <internal:array>...
alanwu (Alan Wu)

11/16/2026

09:35 PM Ruby Revision 6bf3af4d (git): ZJIT: Add SKIP_VM_ENV_DATA and PREV_FRAME stack map opcodes
Give the stack map decoder knowledge of frame layout so that it can
decide whether to write each frame's locals:
- ZJIT_STACK_MAP_OP_SKIP_VM_ENV_DATA moves the cursor past a frame's env
data (me/cref, specval, flags) and marks the sta...
alanwu (Alan Wu)
09:35 PM Ruby Revision 6f551a8e (git): ZJIT: Assert that stack map writes stay in the frame's own VM stack
alanwu (Alan Wu)
09:35 PM Ruby Revision 649d0723 (git): ZJIT: Put locals in stack maps instead of spilling them before calls
Categorize local variable access into two kinds: syntactic access and
surprise access. Syntactic accesses are ones written out in the Ruby
source, contained in the ISEQ and visible at compile time. Surprise
accesses come from facilities ...
alanwu (Alan Wu)
09:35 PM Ruby Revision 22770910 (git): ZJIT: Rephrase comments about without_locals() to admit its removal
Still some references left as-is, to be removed when associated code is
removed.
alanwu (Alan Wu)
09:35 PM Ruby Revision 0b9d58fc (git): ZJIT: Use stack maps in side exits to handle locals
Now that the stack map describes local variables, replace the
local-spilling code stubs of side exits.
The stack map decoder checks whether the environment has escaped before
writing locals at runtime, unlike previously, when it was bou...
alanwu (Alan Wu)
09:35 PM Ruby Revision 7e76a82b (git): ZJIT: `lir::SideExit::stack_map` no longer optional
alanwu (Alan Wu)
09:35 PM Ruby Revision cb79a0cb (git): ZJIT: Fix env escape from GetBlockParam in inlined callee
alanwu (Alan Wu)
09:35 PM Ruby Revision 4ed70f0c (git): ZJIT: Allow zero-capacity BitSet for empty FrameState::spilled_locals
We make a lot of empty BitSets for FrameState::spilled_locals and
previously allocated memory for the clear bits unnecessarily.
There is now one representation for the all-clear BitSet of any size.
alanwu (Alan Wu)
09:35 PM Ruby Revision e5170965 (git): ZJIT: Update HIR snapshots for instruction renumbering
alanwu (Alan Wu)

Also available in: Atom