Ruby  3.1.4p223 (2023-03-30 revision HEAD)
Data Fields
rb_objspace Struct Reference

Data Fields

struct {
   size_t   limit
 
   size_t   increase
 
malloc_params
 
struct {
   unsigned int   mode: 2
 
   unsigned int   immediate_sweep: 1
 
   unsigned int   dont_gc: 1
 
   unsigned int   dont_incremental: 1
 
   unsigned int   during_gc: 1
 
   unsigned int   during_compacting: 1
 
   unsigned int   gc_stressful: 1
 
   unsigned int   has_hook: 1
 
   unsigned int   during_minor_gc: 1
 
   unsigned int   during_incremental_marking: 1
 
   unsigned int   measure_gc: 1
 
flags
 
rb_event_flag_t hook_events
 
size_t total_allocated_objects
 
VALUE next_object_id
 
rb_size_pool_t size_pools [SIZE_POOL_COUNT]
 
struct {
   rb_atomic_t   finalizing
 
atomic_flags
 
mark_stack_t mark_stack
 
size_t marked_slots
 
struct {
   struct heap_page **   sorted
 
   size_t   allocated_pages
 
   size_t   allocatable_pages
 
   size_t   sorted_length
 
   RVALUE *   range [2]
 
   size_t   freeable_pages
 
   size_t   final_slots
 
   VALUE   deferred_final
 
heap_pages
 
st_tablefinalizer_table
 
struct {
   int   run
 
   unsigned int   latest_gc_info
 
   gc_profile_record *   records
 
   gc_profile_record *   current_record
 
   size_t   next_index
 
   size_t   size
 
   double   invoke_time
 
   size_t   minor_gc_count
 
   size_t   major_gc_count
 
   size_t   compact_count
 
   size_t   read_barrier_faults
 
   double   gc_sweep_start_time
 
   size_t   total_allocated_objects_at_gc_start
 
   size_t   heap_used_at_gc_start
 
   size_t   count
 
   size_t   total_freed_objects
 
   size_t   total_allocated_pages
 
   size_t   total_freed_pages
 
   uint64_t   total_time_ns
 
   struct timespec   start_time
 
profile
 
struct gc_listglobal_list
 
VALUE gc_stress_mode
 
struct {
   VALUE   parent_object
 
   int   need_major_gc
 
   size_t   last_major_gc
 
   size_t   uncollectible_wb_unprotected_objects
 
   size_t   uncollectible_wb_unprotected_objects_limit
 
   size_t   old_objects
 
   size_t   old_objects_limit
 
   size_t   oldmalloc_increase
 
   size_t   oldmalloc_increase_limit
 
rgengc
 
struct {
   size_t   considered_count_table [T_MASK]
 
   size_t   moved_count_table [T_MASK]
 
   size_t   total_moved
 
rcompactor
 
struct {
   size_t   pooled_slots
 
   size_t   step_slots
 
rincgc
 
st_tableid_to_obj_tbl
 
st_tableobj_to_id_tbl
 

Detailed Description

Definition at line 706 of file gc.c.


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