Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

Garbage Collector
[Ruby]


Functions

void rb_memerror (void)
int ruby_stack_check (void)
int ruby_stack_length (VALUE **)
char * rb_source_filename (const char *)
void rb_gc_mark_locations (VALUE *, VALUE *)
void rb_mark_tbl (struct st_table *)
void rb_mark_hash (struct st_table *)
void rb_gc_mark_maybe (VALUE)
void rb_gc_mark (VALUE)
void rb_gc_force_recycle (VALUE)
void rb_gc (void)
void rb_gc_copy_finalizer (VALUE, VALUE)
void rb_gc_call_finalizer_at_exit (void)
VALUE rb_gc_enable (void)
VALUE rb_gc_disable (void)
VALUE rb_gc_start (void)


Function Documentation

void rb_gc void   ) 
 

Definition at line 1415 of file gc.c.

References garbage_collect(), and rb_gc_finalize_deferred().

Referenced by dir_initialize(), load_file(), rb_fdopen(), rb_fopen(), rb_gc_start(), rb_sysopen(), and ruby_dup().

void rb_gc_call_finalizer_at_exit void   ) 
 

Definition at line 1822 of file gc.c.

References RVALUE::as, BUILTIN_TYPE, DATA_PTR, deferred_final_list, finalize_list(), FL_FINALIZE, FL_TEST, FL_UNSET, free, heaps, heaps_used, heaps_slot::limit, need_call_final, RANY, rb_io_fptr_finalize(), RUBY_CRITICAL, run_final(), heaps_slot::slot, T_DATA, T_FILE, and VALUE.

Referenced by ruby_finalize_1().

void rb_gc_copy_finalizer VALUE  ,
VALUE 
 

Definition at line 1759 of file gc.c.

References finalizer_table, FL_FINALIZE, FL_TEST, RBASIC, st_insert(), st_lookup(), and VALUE.

Referenced by init_copy().

VALUE rb_gc_disable void   ) 
 

Definition at line 220 of file gc.c.

References dont_gc, and Qtrue.

Referenced by Init_GC().

VALUE rb_gc_enable void   ) 
 

Definition at line 199 of file gc.c.

References dont_gc, and Qfalse.

Referenced by Init_GC().

void rb_gc_force_recycle VALUE   ) 
 

Definition at line 1128 of file gc.c.

References freelist, RANY, and VALUE.

Referenced by autoload_delete(), autoload_file(), dispose_string(), heredoc_restore(), literal_concat(), rb_parser_free(), rb_yield_0(), require_libraries(), yycompile(), and yyparse().

void rb_gc_mark VALUE   ) 
 

Definition at line 735 of file gc.c.

References gc_mark(), and VALUE.

Referenced by blk_mark(), bm_mark(), givar_mark_i(), mark_frame_adj(), rb_gc_mark_parser(), rb_gc_mark_threads(), rb_gc_mark_trap_list(), rb_mark_end_proc(), and thread_mark().

void rb_gc_mark_locations VALUE ,
VALUE
 

Definition at line 633 of file gc.c.

References end, mark_locations_array(), and VALUE.

Referenced by garbage_collect(), mark_frame_adj(), name_err_mesg_mark(), rb_gc_mark_parser(), and thread_mark().

void rb_gc_mark_maybe VALUE   ) 
 

Definition at line 696 of file gc.c.

References gc_mark(), is_pointer_to_heap(), and VALUE.

Referenced by garbage_collect(), mark_global_entry(), rb_gc_mark_parser(), val_marker(), and var_marker().

VALUE rb_gc_start void   ) 
 

Definition at line 1432 of file gc.c.

References Qnil, and rb_gc().

Referenced by Init_GC().

void rb_mark_hash struct st_table  ) 
 

void rb_mark_tbl struct st_table  ) 
 

Referenced by garbage_collect(), rb_mark_generic_ivar(), and thread_mark().

void rb_memerror void   ) 
 

This function does not return.

Definition at line 94 of file gc.c.

References nomem_error, rb_exc_raise(), and rb_safe_level.

Referenced by add_heap(), rb_thread_save_context(), ruby_xmalloc(), and ruby_xrealloc().

char* rb_source_filename const char *   ) 
 

Referenced by load_file(), proc_options(), rb_eval_string(), rb_require_safe(), ruby_prog_init(), ruby_script(), and yycompile().

int ruby_stack_check void   ) 
 

Definition at line 495 of file gc.c.

References CHECK_STACK.

Referenced by gc_mark(), and stack_check().

int ruby_stack_length VALUE **   ) 
 

Definition at line 486 of file gc.c.

References rb_gc_stack_start, SET_STACK_END, STACK_END, STACK_LENGTH, STACK_UPPER, and VALUE.

Referenced by rb_thread_save_context().


Generated on Wed Jan 18 23:32:13 2006 for Ruby by doxygen 1.3.5