General

Profile

peterzhu2118 (Peter Zhu)

  • Login: peterzhu2118
  • Email: peter@peterzhu.ca
  • Registered on: 08/01/2020
  • Last sign in: 12/06/2025

Issues

open closed Total
Assigned issues 1 30 31
Reported issues 3 77 80

Projects

Project Roles Registered on
Ruby Committer 03/24/2021

Activity

12/07/2025

04:51 PM Ruby Revision 4f900c35 (git): Output ivar length for T_OBJECT in obj_info
peterzhu2118 (Peter Zhu)
08:34 AM Ruby Revision 941e70ab (git): Sync doc/stringio in sync_default_gems.rb
peterzhu2118 (Peter Zhu)
01:59 AM Ruby Revision fb80f84f (git): [DOC] Fix formatting in docs for String#[]=
peterzhu2118 (Peter Zhu)

12/06/2025

06:08 PM Ruby Revision 588347a0 (git): Fix id2ref for multi-Ractor
The id2ref table needs to be under a VM lock to ensure there are no race
conditions. The following script crashes:
o = Object.new
ObjectSpace._id2ref(o.object_id)
10.times.map do
Ractor.new do
10_000.times do...
peterzhu2118 (Peter Zhu)
05:13 PM Ruby Revision 1f0d41aa (git): [ruby/date] Call rb_gc_register_mark_object after object allocation
It's possible that both half_days_in_day and day_in_nanoseconds are Ruby
objects, which means that creating day_in_nanoseconds may trigger GC.
Since half_days_in_day is not registered as a mark object until after
day_in_nanoseconds is al...
peterzhu2118 (Peter Zhu)
04:49 PM Ruby Feature #21084: Declare objects have weak references
Hmm, yes. I'll work on rebasing the PR. peterzhu2118 (Peter Zhu)
04:31 PM Ruby Revision 2e828dd9 (git): Fix strict aliasing warning in ruby_swap128_int
The following warnings are emitted. We can use type punning to prevent
strict aliasing violations.
io_buffer.c:1935:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
1935 | r...
peterzhu2118 (Peter Zhu)
03:15 PM Ruby Revision e7f9abdc (git): Sync doc/stringio in sync_default_gems.rb
peterzhu2118 (Peter Zhu)

12/05/2025

11:40 PM Ruby Revision 791acc56 (git): Revert "gc.c: Pass shape_id to `newobj_init`"
This reverts commit 228d13f6ed914d1e7f6bd2416e3f5be8283be865.
This commit makes default.c and mmtk.c depend on shape.h, which prevents
them from building independently.
peterzhu2118 (Peter Zhu)
11:40 PM Ruby Revision 8f983847 (git): Fix fields object in embedded struct
We don't set RSTRUCT_GEN_FIELDS when RCLASS_MAX_IV_COUNT(klass) != 0, so
we need to set RSTRUCT_SET_FIELDS_OBJ to 0 otherwise it may have an
invalid value and crash.
peterzhu2118 (Peter Zhu)

Also available in: Atom