General

Profile

alanwu (Alan Wu)

  • Login: alanwu
  • Registered on: 10/28/2018
  • Last sign in: 11/03/2025

Issues

open closed Total
Assigned issues 4 20 24
Reported issues 3 47 50

Projects

Project Roles Registered on
Ruby Committer 03/19/2021

Activity

Today

03:57 AM Ruby Revision 9cfe949d (git): ZJIT: Fallback counter rename: s/fancy/complex/
Kokubun bought up that "complex" is a more fitting name for what these
counters count. Thanks!
Also:
- make the SendFallbackReason enum name consistent with the counter name
- rewrite the printout prompt in zjit.rb
alanwu (Alan Wu)
03:57 AM Ruby Revision b919eb56 (git): ZJIT: Count caller side features for `complex_arg_pass`
After 34b0ac68b31, we use a fallback instead of side exit for splats.
Count splats under `send_fallback_one_or_more_complex_arg_pass`.
alanwu (Alan Wu)

11/04/2025

05:46 PM Ruby Revision b6f00701 (git): [DOC] Mention on top of `vm_*.c` files the VM translation unit they're in (#15048)
vm_method.c already mentions it. alanwu (Alan Wu)

11/03/2025

04:25 AM Ruby Bug #21659 (Rejected): rstring.h error: missing initializer for field ‘len’ of ‘struct RString’ [-Werror=missing-field-initializers] starting in ruby-3.3.10
`-Wmissing-field-initializers` is in `-Wextra`, not even in `-Wall`. From the [manual](https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmissing-field-initializers) (emphasis mine)
> Warn if a structure’s initializer has ...
alanwu (Alan Wu)

10/31/2025

11:32 PM Ruby Revision 8db30094 (git): ZJIT: Fix incorrect elision of call to BasicObject#!=
rb_obj_not_equal() uses rb_funcall(), so it's not `no_gc`, `leaf`, nor
`elidable`.
alanwu (Alan Wu)

10/30/2025

10:14 PM Ruby Revision 5b71b103 (git): ZJIT: Unsupported call feature accounting, and new `send_fallback_fancy_call_feature`
In cases we fall back when the callee has an unsupported signature, it
was a little inaccurate to use `send_fallback_send_not_optimized_method_type`.
We do support the method type in other situations.
Add a new `send_fallback_fancy_call...
alanwu (Alan Wu)
10:14 PM Ruby Revision 69ec1481 (git): ZJIT: Count unsupported fancy caller side features
These count caller-side features we don't support. But because we side
exit when we see them through unhandled_call_type(), these new counters
currently don't trigger.
alanwu (Alan Wu)
12:21 AM Ruby Bug #21655: segfault when building 3.3.10, regression from 3.3.9
Looks like you're not building with LTO, so the miscomp from `ipa-modref` should be in rb_str_resize(). That should be enough for a bug report for GCC, since they [need](https://gcc.gnu.org/bugs/#need) a preprocessed C file.
Maybe thi...
alanwu (Alan Wu)

10/29/2025

11:35 PM Ruby Revision 0b7ea9c7 (git): YJIT: Prevent making a branch from a dead block to a live block
I'm seeing some memory corruption in the wild on blocks in
`IseqPayload::dead_blocks`. While I unfortunately can't recreate the
issue, (For all I know, it could be some external code corrupting YJIT's
memory.) establishing a link between...
alanwu (Alan Wu)
09:31 PM Ruby Bug #21655: segfault when building 3.3.10, regression from 3.3.9
It's surprising that leaving the temporary struct uninitialized avoids the crash. Smells like a GCC bug or some UB on our end the optimizer is exploiting.
Does `./configure optflags=-fno-strict-aliasing ...` help?
alanwu (Alan Wu)

Also available in: Atom