Module magnus::gc

source · []
Expand description

Functions for working with Ruby’s Garbage Collector.

Functions

Inform Ruby of external memory usage.

Returns all possible key/value pairs for stat as a Ruby Hash.

Returns the number of garbage collections that have been run since the start of the process.

Disable automatic GC runs.

Enable automatic GC run.

Get the new location of an object.

Mark an Object.

Mark an Object and let Ruby know it is moveable.

Mark multiple Objects.

Inform Ruby’s garbage collector that valref points to a live Ruby object.

Registers value to never be garbage collected.

Trigger a “full” GC run.

Returns the GC profiling value for key.

Inform Ruby’s garbage collector that valref that was previously registered with register_address no longer points to a live Ruby object.