Module magnus::gc

source ·
Expand description

Functions for working with Ruby’s Garbage Collector.

See also Ruby for more GC related methods.

Structs§

  • A handle to functions relating to GC compaction.
  • A handle to GC marking functions.

Traits§

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.
  • 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.