ruby/yjit
Jean Boussier 3abdd4241f Turn rb_classext_t.fields into a T_IMEMO/class_fields
This behave almost exactly as a T_OBJECT, the layout is entirely
compatible.

This aims to solve two problems.

First, it solves the problem of namspaced classes having
a single `shape_id`. Now each namespaced classext
has an object that can hold the namespace specific
shape.

Second, it open the door to later make class instance variable
writes atomics, hence be able to read class variables
without locking the VM.
In the future, in multi-ractor mode, we can do the write
on a copy of the `fields_obj` and then atomically swap it.

Considerations:

  - Right now the `RClass` shape_id is always synchronized,
    but with namespace we should likely mark classes that have
    multiple namespace with a specific shape flag.
2025-06-12 07:58:16 +02:00
..
bindgen Refactor raw accesses to rb_shape_t.capacity 2025-06-05 22:06:15 +02:00
src Turn rb_classext_t.fields into a T_IMEMO/class_fields 2025-06-12 07:58:16 +02:00
.gitignore
Cargo.lock Bump capstone from 0.12.0 to 0.13.0 in /yjit 2025-02-05 11:37:34 +09:00
Cargo.toml YJIT: ZJIT: Allow both JITs in the same build 2025-05-15 00:39:03 +09:00
not_gmake.mk Define ZJIT libs for non-gmake 2025-04-18 21:52:55 +09:00
yjit.mk YJIT: ZJIT: Allow both JITs in the same build 2025-05-15 00:39:03 +09:00