[][src]Module rosy::gc

Ruby's garbage collector.

Traits

GcInfoKey

A key that can be used to look up what the latest information is about the garbage collector.

Functions

adjust_mem_usage

Tells the garbage collector how much memory is being used by an external library. This may trigger the GC to resize or free emory blocks.

count

Returns the number of times the GC has ran.

disable

Disables the garbage collector, returning whether it was already previously disabled.

disabled

Calls f while the garbage collector is disabled.

enable

Enables the garbage collector, returning whether it was already previously enabled.

force_recycle

Forces obj to be garbage-collected.

latest_info

Returns the latest information regarding key with respect to the garbage collector.

latest_info_unchecked

Returns the latest information regarding key with respect to the garbage collector.

mark

Marks the object for Ruby to avoid garbage collecting it.

mark_iter

Iterates over objs, marking each one.

mark_maybe

Marks the object for Ruby to avoid garbage collecting it.

register

Registers address with the garbage collector.

register_mark

Registers the object address with the garbage collector and tells it to avoid collecting it.

start

Starts the garbage collector.

stat

Returns the status information for key, or an exception if one is raised.

stat_unchecked

Returns the status information for key.

unregister

Unregisters address with the garbage collector.