General

Profile

wks (Kunshan Wang)

  • Login: wks
  • Registered on: 03/22/2022
  • Last sign in: 11/17/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 1 2

Activity

07/24/2025

03:37 PM Ruby Revision 5ef20b3a (git): YJIT: Use raw memory write to update pointers in code
Because we have set all code memory to writable before the reference
updating phase, we can use raw memory writes directly.
wks (Kunshan Wang)

07/22/2025

02:05 PM Ruby Revision 0f408602 (git): Fix missing increment of deleted_entries
When `rb_concurrent_set_foreach_with_replace` deletes entries from a
concurrent set, it should increment the `deleted_entries` field, too.
wks (Kunshan Wang)

07/14/2025

08:21 PM Ruby Revision 51a3ea5a (git): YJIT: Set code mem permissions in bulk
Some GC modules, notably MMTk, support parallel GC, i.e. multiple GC
threads work in parallel during a GC. Currently, when two GC threads
scan two iseq objects simultaneously when YJIT is enabled, both threads
will attempt to borrow `Co...
wks (Kunshan Wang)
08:21 PM Ruby Revision 3a47f4ea (git): YJIT: Move RefCell one level down
This is the second part of making YJIT work with parallel GC.
During GC, `rb_yjit_iseq_mark` and `rb_yjit_iseq_update_references` need
to resolve offsets in `Block::gc_obj_offsets` into absolute addresses
before reading or updating the ...
wks (Kunshan Wang)

05/30/2025

02:55 PM Ruby Revision 94688bdc (git): [ruby/mmtk] Fix clippy warnings and formatting.
We also enable `#![warn(unsafe_op_in_unsafe_fn)]` in the whole mmtk_ruby
crate.
https://github.com/ruby/mmtk/commit/8b8025f71a
wks (Kunshan Wang)
02:55 PM Ruby Revision d2a1ad00 (git): [ruby/mmtk] Fix environment variable parsing
Ues more idiomatic rust approaches.
https://github.com/ruby/mmtk/commit/ef125f9eae
wks (Kunshan Wang)
02:55 PM Ruby Revision 60de513d (git): [ruby/mmtk] Remove unused constant
Remove the unused constant HAS_MOVED_GFIELDSTBL and related methods.
In the mmtk/mmtk-ruby repo, we are now able to find the global field
(IV) table of a moved object during copying GC without using the
HAS_MOVED_GFIELDSTBL bit. We syn...
wks (Kunshan Wang)
02:55 PM Ruby Revision d8774ec9 (git): [ruby/mmtk] Bump MMTk and dependencies version
https://github.com/ruby/mmtk/commit/de252637ec wks (Kunshan Wang)

04/08/2025

03:12 AM Ruby Revision d17ab5a4 (git): [ruby/mmtk] Do root scanning in scan_vm_specific_roots
We rely on scan_vm_specific_roots to reach all stacks via the following
path:
VM -> ractors -> threads -> fibers -> stacks
https://github.com/ruby/mmtk/commit/0a6a835aaa
wks (Kunshan Wang)

04/02/2025

02:47 PM Ruby Revision ce1dfe81 (git): [DOC] Doc for Thread::ConditionVariable
Documented the necessity of calling `wait` in a loop. We modified the
example to demonstrate the idiomatic use, and added a third thread `a2`
to demonstrate another reason that necessitates the loop.
Mentioned spurious wake-up in the doc.
wks (Kunshan Wang)

Also available in: Atom