Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Macros | |
#define | SET_MACHINE_STACK_END(p) rb_gc_set_stack_end(p) |
#define | USE_CONSERVATIVE_STACK_END |
#define | RUBY_MARK_FREE_DEBUG 0 |
#define | RUBY_MARK_ENTER(msg) |
#define | RUBY_MARK_LEAVE(msg) |
#define | RUBY_FREE_ENTER(msg) |
#define | RUBY_FREE_LEAVE(msg) |
#define | RUBY_GC_INFO if(0)printf |
#define | RUBY_MARK_UNLESS_NULL(ptr) |
#define | RUBY_FREE_UNLESS_NULL(ptr) if(ptr){ruby_xfree(ptr);(ptr)=NULL;} |
#define | stack_growup_p(x) |
#define | STACK_UPPER(x, a, b) (stack_growup_p(x) ? (a) : (b)) |
#define | STACK_GROW_DIR_DETECTION VALUE stack_grow_dir_detection |
#define | STACK_DIR_UPPER(a, b) STACK_UPPER(&stack_grow_dir_detection, (a), (b)) |
#define | IS_STACK_DIR_UPPER() STACK_DIR_UPPER(1,0) |
Functions | |
NOINLINE (void rb_gc_set_stack_end(VALUE **stack_end_p)) | |
int | ruby_get_stack_grow_direction (volatile VALUE *addr) |
const char * | rb_obj_info (VALUE obj) |
const char * | rb_raw_obj_info (char *buff, const int buff_size, VALUE obj) |
void | rb_obj_info_dump (VALUE obj) |
int | rb_threadptr_during_gc (struct rb_thread_struct *th) |
RUBY_SYMBOL_EXPORT_BEGIN size_t | rb_objspace_data_type_memsize (VALUE obj) |
void | rb_objspace_reachable_objects_from (VALUE obj, void(func)(VALUE, void *), void *data) |
void | rb_objspace_reachable_objects_from_root (void(func)(const char *category, VALUE, void *), void *data) |
int | rb_objspace_markable_object_p (VALUE obj) |
int | rb_objspace_internal_object_p (VALUE obj) |
int | rb_objspace_marked_object_p (VALUE obj) |
int | rb_objspace_garbage_object_p (VALUE obj) |
void | rb_objspace_each_objects (int(*callback)(void *start, void *end, size_t stride, void *data), void *data) |
void | rb_objspace_each_objects_without_setup (int(*callback)(void *, void *, size_t, void *), void *data) |
Variables | |
RUBY_EXTERN int | ruby_stack_grow_direction |
#define IS_STACK_DIR_UPPER | ( | ) | STACK_DIR_UPPER(1,0) |
#define RUBY_FREE_ENTER | ( | msg | ) |
Definition at line 55 of file gc.h.
Referenced by rb_iseq_free(), and ruby_vm_destruct().
#define RUBY_FREE_UNLESS_NULL | ( | ptr | ) | if(ptr){ruby_xfree(ptr);(ptr)=NULL;} |
#define RUBY_GC_INFO if(0)printf |
Definition at line 57 of file gc.h.
Referenced by rb_vm_mark().
#define RUBY_MARK_ENTER | ( | msg | ) |
Definition at line 53 of file gc.h.
Referenced by rb_iseq_mark(), rb_thread_mark(), and rb_vm_mark().
#define RUBY_MARK_LEAVE | ( | msg | ) |
Definition at line 54 of file gc.h.
Referenced by rb_iseq_mark(), rb_thread_mark(), and rb_vm_mark().
#define RUBY_MARK_UNLESS_NULL | ( | ptr | ) |
Definition at line 60 of file gc.h.
Referenced by rb_iseq_mark(), rb_thread_mark(), and rb_vm_mark().
#define SET_MACHINE_STACK_END | ( | p | ) | rb_gc_set_stack_end(p) |
Definition at line 11 of file gc.h.
Referenced by Init_Cont(), and ruby_get_stack_grow_direction().
#define STACK_DIR_UPPER | ( | a, | |
b | |||
) | STACK_UPPER(&stack_grow_dir_detection, (a), (b)) |
#define stack_growup_p | ( | x | ) |
#define STACK_UPPER | ( | x, | |
a, | |||
b | |||
) | (stack_growup_p(x) ? (a) : (b)) |
Definition at line 77 of file gc.h.
Referenced by ruby_cleanup(), and ruby_stack_length().
NOINLINE | ( | void | rb_gc_set_stack_endVALUE **stack_end_p | ) |
void rb_obj_info_dump | ( | VALUE | obj | ) |
Definition at line 9453 of file gc.c.
References RANY, rb_gcdebug_print_obj_condition(), rb_objspace, and rb_raw_obj_info().
RUBY_SYMBOL_EXPORT_BEGIN size_t rb_objspace_data_type_memsize | ( | VALUE | obj | ) |
Definition at line 2078 of file gc.c.
References rb_data_type_struct::dsize, rb_data_type_struct::function, RTYPEDDATA_DATA, RTYPEDDATA_P, and RTYPEDDATA_TYPE.
void rb_objspace_each_objects | ( | int(*)(void *start, void *end, size_t stride, void *data) | callback, |
void * | data | ||
) |
void rb_objspace_each_objects_without_setup | ( | int(*)(void *, void *, size_t, void *) | callback, |
void * | data | ||
) |
int rb_objspace_garbage_object_p | ( | VALUE | obj | ) |
Definition at line 3072 of file gc.c.
References rb_objspace.
int rb_objspace_markable_object_p | ( | VALUE | obj | ) |
Definition at line 3065 of file gc.c.
References rb_objspace.
Definition at line 7599 of file gc.c.
References rb_objspace.
void rb_objspace_reachable_objects_from_root | ( | void(func)(const char *category, VALUE, void *) | , |
void * | data | ||
) |
Definition at line 7627 of file gc.c.
References root_objects_data::data, root_objects_data::func, and rb_objspace.
Definition at line 9290 of file gc.c.
References snprintf, and SPECIAL_CONST_P.
Referenced by rb_obj_info_dump(), and ruby_debug_print_value().
int rb_threadptr_during_gc | ( | struct rb_thread_struct * | th | ) |
Definition at line 6742 of file gc.c.
References during_gc, rb_objspace_of, and rb_thread_struct::vm.
int ruby_get_stack_grow_direction | ( | volatile VALUE * | addr | ) |
Definition at line 3997 of file gc.c.
References SET_MACHINE_STACK_END.
RUBY_EXTERN int ruby_stack_grow_direction |