Ruby: ruby_gc_params_t Struct Reference

Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)

Data Fields
ruby_gc_params_t Struct Reference

## Data Fields
size_t | heap_init_slots [HEAP_COUNT]
size_t | heap_free_slots
double | growth_factor
size_t | growth_max_slots
double | heap_free_slots_min_ratio
double | heap_free_slots_goal_ratio
double | heap_free_slots_max_ratio
double | uncollectible_wb_unprotected_objects_limit_ratio
double | oldobject_limit_factor
size_t | malloc_limit_min
size_t | malloc_limit_max
double | malloc_limit_growth_factor
size_t | oldmalloc_limit_min
size_t | oldmalloc_limit_max
double | oldmalloc_limit_growth_factor

## Detailed Description

Definition at line 204 of file default.c.

## Field Documentation

## ◆ growth_factor

double ruby_gc_params_t::growth_factor

Definition at line 207 of file default.c.

## ◆ growth_max_slots

size_t ruby_gc_params_t::growth_max_slots

Definition at line 208 of file default.c.

## ◆ heap_free_slots

size_t ruby_gc_params_t::heap_free_slots

Definition at line 206 of file default.c.

## ◆ heap_free_slots_goal_ratio

double ruby_gc_params_t::heap_free_slots_goal_ratio

Definition at line 211 of file default.c.

## ◆ heap_free_slots_max_ratio

double ruby_gc_params_t::heap_free_slots_max_ratio

Definition at line 212 of file default.c.

## ◆ heap_free_slots_min_ratio

double ruby_gc_params_t::heap_free_slots_min_ratio

Definition at line 210 of file default.c.

## ◆ heap_init_slots

size_t ruby_gc_params_t::heap_init_slots[HEAP_COUNT]

Definition at line 205 of file default.c.

## ◆ malloc_limit_growth_factor

double ruby_gc_params_t::malloc_limit_growth_factor

Definition at line 218 of file default.c.

## ◆ malloc_limit_max

size_t ruby_gc_params_t::malloc_limit_max

Definition at line 217 of file default.c.

## ◆ malloc_limit_min

size_t ruby_gc_params_t::malloc_limit_min

Definition at line 216 of file default.c.

## ◆ oldmalloc_limit_growth_factor

double ruby_gc_params_t::oldmalloc_limit_growth_factor

Definition at line 222 of file default.c.

## ◆ oldmalloc_limit_max

size_t ruby_gc_params_t::oldmalloc_limit_max

Definition at line 221 of file default.c.

## ◆ oldmalloc_limit_min

size_t ruby_gc_params_t::oldmalloc_limit_min

Definition at line 220 of file default.c.

## ◆ oldobject_limit_factor

double ruby_gc_params_t::oldobject_limit_factor

Definition at line 214 of file default.c.

## ◆ uncollectible_wb_unprotected_objects_limit_ratio

double ruby_gc_params_t::uncollectible_wb_unprotected_objects_limit_ratio

Definition at line 213 of file default.c.

The documentation for this struct was generated from the following file:

- gc/default/default.c