Ruby 3.2.4p170 (2024-04-23 revision af471c0e0127eea0cafa6f308c0425bbfab0acf5)
|
Registering values to the GC. More...
Go to the source code of this file.
Functions | |
void | rb_gc_register_address (VALUE *valptr) |
Inform the garbage collector that valptr points to a live Ruby object that should not be moved. | |
void | rb_global_variable (VALUE *) |
An alias for rb_gc_register_address() . | |
void | rb_gc_unregister_address (VALUE *valptr) |
Inform the garbage collector that a pointer previously passed to rb_gc_register_address() no longer points to a live Ruby object. | |
void | rb_gc_register_mark_object (VALUE object) |
Inform the garbage collector that object is a live Ruby object that should not be moved. | |
Registering values to the GC.
RBIMPL
or rbimpl
are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will. __VA_ARGS__
is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98. Definition in file gc.h.
void rb_gc_register_address | ( | VALUE * | valptr | ) |
void rb_gc_register_mark_object | ( | VALUE | object | ) |
Inform the garbage collector that object
is a live Ruby object that should not be moved.
See also: rb_gc_register_address()
void rb_gc_unregister_address | ( | VALUE * | valptr | ) |
Inform the garbage collector that a pointer previously passed to rb_gc_register_address()
no longer points to a live Ruby object.
void rb_global_variable | ( | VALUE * | var | ) |
An alias for rb_gc_register_address()
.