Ruby  2.1.10p492(2016-04-01revision54464)
Data Structures | Data Fields
rb_objspace Struct Reference

Data Structures

struct  mark_func_data_struct
 

Data Fields

struct {
   size_t   limit
 
   size_t   increase
 
malloc_params
 
rb_heap_t eden_heap
 
rb_heap_t tomb_heap
 
struct {
   struct heap_page **   sorted
 
   size_t   used
 
   size_t   length
 
   RVALUE *   range [2]
 
   size_t   limit
 
   size_t   increment
 
   size_t   swept_slots
 
   size_t   min_free_slots
 
   size_t   max_free_slots
 
   size_t   final_slots
 
   RVALUE *   deferred_final
 
heap_pages
 
struct {
   int   dont_gc
 
   int   dont_lazy_sweep
 
   int   during_gc
 
   rb_atomic_t   finalizing
 
flags
 
st_tablefinalizer_table
 
mark_stack_t mark_stack
 
struct {
   int   run
 
   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
 
   double   gc_sweep_start_time
 
   size_t   total_allocated_object_num_at_gc_start
 
   size_t   heap_used_at_gc_start
 
   size_t   count
 
   size_t   total_allocated_object_num
 
   size_t   total_freed_object_num
 
   int   latest_gc_info
 
profile
 
struct gc_listglobal_list
 
rb_event_flag_t hook_events
 
VALUE gc_stress
 
struct rb_objspace::mark_func_data_structmark_func_data
 
struct {
   int   during_minor_gc
 
   int   parent_object_is_old
 
   int   need_major_gc
 
   size_t   last_major_gc
 
   size_t   remembered_shady_object_count
 
   size_t   remembered_shady_object_limit
 
   size_t   old_object_count
 
   size_t   old_object_limit
 
   size_t   oldmalloc_increase
 
   size_t   oldmalloc_increase_limit
 
rgengc
 

Detailed Description

Definition at line 417 of file gc.c.

Field Documentation

◆ count

size_t rb_objspace::count

◆ current_record

gc_profile_record* rb_objspace::current_record

◆ deferred_final

RVALUE* rb_objspace::deferred_final

Definition at line 445 of file gc.c.

◆ dont_gc

int rb_objspace::dont_gc

Definition at line 449 of file gc.c.

◆ dont_lazy_sweep

int rb_objspace::dont_lazy_sweep

Definition at line 450 of file gc.c.

Referenced by garbage_collect_body(), heap_prepare_freepage(), and lazy_sweep_enable().

◆ during_gc

int rb_objspace::during_gc

Definition at line 451 of file gc.c.

◆ during_minor_gc

int rb_objspace::during_minor_gc

◆ eden_heap

rb_heap_t rb_objspace::eden_heap

Definition at line 427 of file gc.c.

Referenced by rb_objspace_free().

◆ final_slots

size_t rb_objspace::final_slots

Definition at line 444 of file gc.c.

◆ finalizer_table

st_table* rb_objspace::finalizer_table

Definition at line 454 of file gc.c.

◆ finalizing

rb_atomic_t rb_objspace::finalizing

Definition at line 452 of file gc.c.

◆ flags

struct { ... } rb_objspace::flags

◆ gc_stress

VALUE rb_objspace::gc_stress

Definition at line 509 of file gc.c.

◆ gc_sweep_start_time

double rb_objspace::gc_sweep_start_time

Definition at line 497 of file gc.c.

Referenced by gc_prof_sweep_timer_start(), and gc_prof_sweep_timer_stop().

◆ global_list

struct gc_list* rb_objspace::global_list

Definition at line 507 of file gc.c.

◆ heap_pages

struct { ... } rb_objspace::heap_pages

◆ heap_used_at_gc_start

size_t rb_objspace::heap_used_at_gc_start

Definition at line 499 of file gc.c.

Referenced by garbage_collect_body(), and gc_prof_set_heap_info().

◆ hook_events

rb_event_flag_t rb_objspace::hook_events

Definition at line 508 of file gc.c.

Referenced by rb_objspace_set_event_hook().

◆ increase

size_t rb_objspace::increase

Definition at line 420 of file gc.c.

◆ increment

size_t rb_objspace::increment

Definition at line 437 of file gc.c.

◆ invoke_time

double rb_objspace::invoke_time

Definition at line 466 of file gc.c.

Referenced by gc_prof_timer_stop(), and Init_heap().

◆ last_major_gc

size_t rb_objspace::last_major_gc

Definition at line 523 of file gc.c.

Referenced by gc_after_sweep().

◆ latest_gc_info

int rb_objspace::latest_gc_info

◆ length

size_t rb_objspace::length

Definition at line 433 of file gc.c.

◆ limit

size_t rb_objspace::limit

Definition at line 419 of file gc.c.

◆ major_gc_count

size_t rb_objspace::major_gc_count

Definition at line 470 of file gc.c.

Referenced by gc_after_sweep(), gc_marks_body(), and gc_stat_internal().

◆ malloc_params

struct { ... } rb_objspace::malloc_params

◆ mark_func_data

struct rb_objspace::mark_func_data_struct * rb_objspace::mark_func_data

◆ mark_stack

mark_stack_t rb_objspace::mark_stack

Definition at line 455 of file gc.c.

Referenced by gc_mark(), gc_mark_stacked_objects(), Init_heap(), and rb_objspace_free().

◆ max_free_slots

size_t rb_objspace::max_free_slots

Definition at line 441 of file gc.c.

◆ min_free_slots

size_t rb_objspace::min_free_slots

Definition at line 440 of file gc.c.

◆ minor_gc_count

size_t rb_objspace::minor_gc_count

Definition at line 469 of file gc.c.

Referenced by gc_after_sweep(), gc_marks_body(), and gc_stat_internal().

◆ need_major_gc

int rb_objspace::need_major_gc

Definition at line 521 of file gc.c.

Referenced by garbage_collect_body(), gc_after_sweep(), and gc_before_sweep().

◆ next_index

size_t rb_objspace::next_index

◆ old_object_count

size_t rb_objspace::old_object_count

Definition at line 527 of file gc.c.

Referenced by garbage_collect_body(), gc_mark_children(), gc_marks(), and gc_stat_internal().

◆ old_object_limit

size_t rb_objspace::old_object_limit

Definition at line 528 of file gc.c.

Referenced by garbage_collect_body(), gc_marks(), and gc_stat_internal().

◆ oldmalloc_increase

size_t rb_objspace::oldmalloc_increase

Definition at line 534 of file gc.c.

Referenced by gc_before_sweep(), gc_stat_internal(), and objspace_malloc_increase().

◆ oldmalloc_increase_limit

size_t rb_objspace::oldmalloc_increase_limit

Definition at line 535 of file gc.c.

Referenced by gc_before_sweep(), gc_stat_internal(), Init_heap(), and ruby_gc_set_params().

◆ parent_object_is_old

int rb_objspace::parent_object_is_old

Definition at line 519 of file gc.c.

Referenced by gc_mark_children(), gc_mark_roots(), gc_marks_body(), and rgengc_check_relation().

◆ profile

struct { ... } rb_objspace::profile

◆ range

RVALUE* rb_objspace::range[2]

Definition at line 434 of file gc.c.

◆ records

gc_profile_record* rb_objspace::records

◆ remembered_shady_object_count

size_t rb_objspace::remembered_shady_object_count

◆ remembered_shady_object_limit

size_t rb_objspace::remembered_shady_object_limit

Definition at line 526 of file gc.c.

Referenced by garbage_collect_body(), gc_marks(), and gc_stat_internal().

◆ rgengc

struct { ... } rb_objspace::rgengc

◆ run

int rb_objspace::run

◆ size

size_t rb_objspace::size

Definition at line 461 of file gc.c.

Referenced by gc_prof_setup_new_record(), and gc_profile_clear().

◆ sorted

struct heap_page** rb_objspace::sorted

Definition at line 431 of file gc.c.

◆ swept_slots

size_t rb_objspace::swept_slots

Definition at line 439 of file gc.c.

◆ tomb_heap

rb_heap_t rb_objspace::tomb_heap

Definition at line 428 of file gc.c.

◆ total_allocated_object_num

size_t rb_objspace::total_allocated_object_num

Definition at line 503 of file gc.c.

Referenced by garbage_collect_body(), gc_stat_internal(), newobj_of(), and objspace_live_slot().

◆ total_allocated_object_num_at_gc_start

size_t rb_objspace::total_allocated_object_num_at_gc_start

Definition at line 498 of file gc.c.

Referenced by garbage_collect_body(), and gc_prof_set_heap_info().

◆ total_freed_object_num

size_t rb_objspace::total_freed_object_num

◆ used

size_t rb_objspace::used

Definition at line 432 of file gc.c.


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