General

Profile

peterzhu2118 (Peter Zhu)

  • Login: peterzhu2118
  • Email: peter@peterzhu.ca
  • Registered on: 08/01/2020
  • Last sign in: 12/28/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/29/2025

02:03 PM Ruby Revision 56147001 (git): Move MEMO_NEW to imemo.c and rename to rb_imemo_memo_new
peterzhu2118 (Peter Zhu)
02:03 PM Ruby Revision 01cd9c9f (git): Add rb_gc_register_pinning_obj
peterzhu2118 (Peter Zhu)
02:03 PM Ruby Revision 7902ae34 (git): Add rb_gc_move_obj_during_marking
peterzhu2118 (Peter Zhu)
02:03 PM Ruby Revision 782d959f (git): Implement moving Immix in MMTk
This commit implements moving Immix in MMTk, which allows objects to move
in the GC.
The performance of this implementation is not yet amazing. It is very
similar to non-moving Immix in many of them and slightly slower in others.
The be...
peterzhu2118 (Peter Zhu)

12/28/2025

09:25 PM Ruby Revision 9e78353c (git): Fix maybe uninitialized warnings in random.c
Fixes the following compiler warnings:
random.c: In function `random_init`:
random.c:416:38: warning: `rng` may be used uninitialized in this function [-Wmaybe-uninitialized]
416 | unsigned int major = rng->version.maj...
peterzhu2118 (Peter Zhu)
01:55 PM Ruby Revision eaa83e50 (git): Always allocate Fiber objects in Thread
Currently, root fibers of threads do not have a corresponding Ruby object
backing it by default (it does have one when an object is required, such
as when Fiber.current is called). This is a problem for the new GC weak
references design ...
peterzhu2118 (Peter Zhu)

12/26/2025

03:14 PM Ruby Revision 6ae69e9a (git): [DOC] Remove args from call-seq of Method#call
peterzhu2118 (Peter Zhu)
03:14 PM Ruby Revision 7b3b1a14 (git): [DOC] Use self in call-seq for Method#call
peterzhu2118 (Peter Zhu)
12:31 AM Ruby Revision 290fa0d8 (git): [ruby/mmtk] Fix cargo fmt
https://github.com/ruby/mmtk/commit/f4c46cabc7 peterzhu2118 (Peter Zhu)

12/25/2025

02:18 PM Ruby Feature #21084 (Closed): Declare objects have weak references
Applied in changeset commit:git|10b97f52fd2cba189b8952fcb02c4d6dd9b1b6f2.
----------
Implement declaring weak references
[Feature #21084]
# Summary
The current way of marking weak references uses `rb_gc_mark_weak(VALUE *ptr)`.
This ...
peterzhu2118 (Peter Zhu)

Also available in: Atom