|
Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)
|
Macros | |
| #define | RB_OBJ_WRITE(old, slot, young) |
| Declaration of a "back" pointer. | |
| #define | RB_OBJ_WRITTEN(old, oldv, young) |
| Identical to RB_OBJ_WRITE(), except it doesn't write any values, but only a WB declaration. | |
| #define RB_OBJ_WRITE | ( | old, | |
| slot, | |||
| young ) |
Declaration of a "back" pointer.
This is a write barrier for new reference from "old" generation to "young" generation. It writes young into *slot, which is a pointer inside of old.
| [in] | old | An old object. |
| [in] | slot | A pointer inside of old. |
| [out] | young | A young object. |
Definition at line 603 of file gc.h.
Referenced by RARRAY_ASET(), rb_alias(), rb_cvar_set(), rb_enc_reg_new(), rb_free_generic_ivar(), rb_hash_set_ifnone(), rb_ractor_stderr_set(), rb_ractor_stdin_set(), rb_ractor_stdout_set(), and rb_tracepoint_disable().
| #define RB_OBJ_WRITTEN | ( | old, | |
| oldv, | |||
| young ) |
Identical to RB_OBJ_WRITE(), except it doesn't write any values, but only a WB declaration.
oldv is replaced value with b (not used in current Ruby).
| [in] | old | An old object. |
| [in] | oldv | An object previously stored inside of old. |
| [out] | young | A young object. |