General

Profile

alanwu (Alan Wu)

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

Issues

open closed Total
Assigned issues 4 25 29
Reported issues 1 49 50

Projects

Project Roles Registered on
Ruby Committer 03/19/2021

Activity

04/03/2026

12:17 AM Ruby Revision b8c35082 (git): ZJIT: Avoid transmute dodging rustc/LLVM int-to-ptr miscompilation
The transmute triggered a miscompilation on Rust 1.85.0, where the
callback was "optimized" to unconditional go to a `SIGTRAP`ping
instruction.
While later Rust versions don't have the same miscompilation, it seems
that this is also par...
alanwu (Alan Wu)
12:17 AM Ruby Revision 61bef957 (git): YJIT: ZJIT: Use opt-level=1 on dev builds to avoid SystemStackError
Despite adding rb_ec_stack_check() to Rust code entry points, we've seen
SystemStackError causing test failures due to debug builds consume too
much native stack space. Let's use opt-level=1 so rustc/LLVM are more
efficient with stack sp...
alanwu (Alan Wu)
12:17 AM Ruby Revision 6ebe6f97 (git): Revert "ZJIT: Skip TestOpenURIProxy on Linux (#16606)"
This reverts commit d368d42ec6b50cece947556a2185ce73fa493bfe. alanwu (Alan Wu)
12:17 AM Ruby Revision 23175641 (git): Revert "ZJIT: Skip TestOpenURI and TestOpenURISSL (#16603)"
This reverts commit 33b9d2ab9f45a0c66665fb8dc40ddebd07c7b7b7. alanwu (Alan Wu)

04/02/2026

12:18 AM Ruby Revision f0c73671 (git): Revert "ZJIT: Clean up branching in polymorphic opt_send_without_block HIR construction (#16634)"
This reverts commit 77b803cfc833233a49b497a9342f16c9237833e6.
There is a new NULL dereference in tool/test/testunit/test_sorting.rb
that seem to have started with this commit.
alanwu (Alan Wu)

04/01/2026

02:13 PM Ruby Revision a8f3c345 (git): ZJIT: Add missing guard on ivar access on T_{DATA,CLASS,MODULE}
T_DATA, T_MODULE, and T_CLASS objects can share the exact same shape.
The shape on these objects give an index off of the fields array to
get at the ivar. When two objects share the same shape, but differ
in the T_* builtin type, however...
alanwu (Alan Wu)

03/31/2026

12:33 AM Ruby Revision f6adf1c4 (git): ZJIT: Use a slice for ISeq `opt_table` for quick one-off access
This gets rid of the copying of the entire opt_table in
function_stub_hit() since it only reads one element. HIR builder
still does a copy and that's unchanged. It needs to read the whole
table.
alanwu (Alan Wu)

03/28/2026

03:02 PM Ruby Revision 64e10365 (git): ZJIT: Fn stub: Move args to create appropriate unfilled optional param gap
When a SendDirect lands in a callee that fails to compile, we need to
reconstruct the interpreter state at the entry point of the callee in
function_stub_hit().
SendDirect never leaves gaps in its args Vec, and consequently, it
contains...
alanwu (Alan Wu)

03/25/2026

10:27 PM Ruby Revision b78a84e7 (git): Revert "Skip initializing optional arguments to `nil`" and add test
This reverts commit 1596853428393136ee9964ad4c11b0120ed648d1.
Expressions that run when the local is not given can observe the initial
state of the optional parameter locals.
alanwu (Alan Wu)

03/24/2026

11:10 PM Ruby Revision 04774d3a (git): ZJIT: Per-ISEQ feedback for singleton class speculation
Instead of globally disabling NoSingletonClass optimization for a class
once any singleton class has been seen, track invalidations per-ISEQ.
When an ISEQ's NoSingletonClass patchpoint is invalidated, set a flag
on its payload so only th...
alanwu (Alan Wu)

Also available in: Atom