> For the complete documentation index, see [llms.txt](https://enls.gitbook.io/rgss-reference-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enls.gitbook.io/rgss-reference-manual/standard-library/built-in-modules/gc.md).

# GC

A module that controls garbage collection in the Ruby interpreter.

GC.disable

Halts garbage collection.

Returns the previous halt state (if halted, returns TRUE; if garbage collection was enabled, returns FALSE).

GC.enable

Permits garbage collection.

Returns the previous halt state (if halted, returns TRUE; if garbage collection was enabled, returns FALSE).

GC.start

Initializes garbage collection.

Returns nil.
