alanwu (Alan Wu)
- Login: alanwu
- Registered on: 10/28/2018
- Last sign in: 10/21/2026
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 3 | 35 | 38 |
| Reported issues | 3 | 56 | 59 |
Projects
| Project | Roles | Registered on |
|---|---|---|
| Ruby | Committer | 03/19/2021 |
Activity
Today
-
09:59 PM Ruby Revision 47049941 (git): ZJIT: x64: Fix encoding of ALU ops with narrow operand and unsigned-fitting Imm
- write_rm_multi() sized a signed Imm as two's complement, so for example
cmp(Mem8, Imm(0x80)) panicked even though cmp(Mem8, UImm(0x80)) encodes
fine. Treat Imm and UImm as a bit pattern plus signedness, like test():
accept a value that f... -
09:59 PM Ruby Revision 94f13ab1 (git): YJIT: x64: Fix encoding of ALU ops with narrow operand and unsigned-fitting Imm
- Port the ZJIT fix to write_rm_multi(). A signed Imm was sized as two's
complement, so for example `cmp(Mem8, Imm(0x80))` panicked even though the
same value as UImm encodes fine. Treat Imm and UImm as a bit pattern plus
signedness, accep... -
09:59 PM Ruby Revision 289abce2 (git): ZJIT: x64: Fix panic on 32-bit ALU ops with lir::Opnd::Imm above i32::MAX
- add/sub/and/or/xor on a 32-bit operand with an immediate in
0x8000_0000..=0xffff_ffff used to panic with an operand size mismatch.
Split gave a 64-bit register for the immediate unnecessarily.
Fix by using an immediate in all cases poss... -
09:13 PM Ruby Revision b14c9a3a (git): YJIT: Pass the block argument for `super(&blk)` [Backport #22712]
- Previously, in super, YJIT forwarded the current frame's block handler,
even when it should instead pass the block argument:
class A
def foo(x) = block_given? ? :got_block : :no_block
end
class B < A
def foo(x) =... -
07:33 PM Ruby Revision 91228c50 (git): YJIT: Avoid `super` from BasicObject (it has no superclass)
- `super` in a method of BasicObject has no superclass to search.
RCLASS_SUPER() is 0 there, and YJIT passed that on to
rb_callable_method_entry() at compile time, failing an assertion on
debug builds. -
07:33 PM Ruby Revision 94271a67 (git): ZJIT: Avoid `super` from BasicObject (it has no superclass)
- `super` in a method of BasicObject has no superclass to search.
RCLASS_SUPER() is 0 there, not nil as the existing check expected, and
ZJIT passed that on to rb_callable_method_entry() at compile time,
failing an assertion on debug builds. -
07:08 PM Ruby Bug #22712 (Closed): YJIT sometimes does not pass &block_argument properly with super
- Applied in changeset commit:git|482ed359874e665af66cb391cde74f0ba3630a13.
----------
YJIT: Pass the block argument for `super(&blk)` [Bug #22712]
Previously, in super, YJIT forwarded the current frame's block handler,
even when it shou... -
07:08 PM Ruby Revision 482ed359 (git): YJIT: Pass the block argument for `super(&blk)` [Bug #22712]
- Previously, in super, YJIT forwarded the current frame's block handler,
even when it should instead pass the block argument:
class A
def foo(x) = block_given? ? :got_block : :no_block
end
class B < A
def foo(x) =...
12/03/2026
-
11:41 PM Ruby Bug #22712 (Closed): YJIT sometimes does not pass &block_argument properly with super
- ```ruby
# --yjit-call-threshold=1
class A
def foo(x) = block_given? ? :got_block : :no_block
end
class B < A
def foo(x) = super(x, &nil)
end
b = B.new
arg = b
arg = 0 if ENV['MASK']
p(b.foo(arg) {}) # => :got_block, should... -
08:46 PM Ruby Revision eb220bb2 (git): [DOC] Basic docs for rb_gc_*_ptr internal macros