Ruby 2.0.0p353(2013-11-22revision43784)

- Main Page
- Modules
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

Data Fields
rb_vm_struct Struct Reference

`#include <vm_core.h>`

## Data Fields
VALUE | self
rb_global_vm_lock_t | gvl
rb_thread_lock_t | thread_destruct_lock
struct rb_thread_struct * | main_thread
struct rb_thread_struct * | running_thread
st_table * | living_threads
VALUE | thgroup_default
int | running
int | thread_abort_on_exception
int | trace_running
volatile int | sleeper
VALUE | mark_object_ary
VALUE | special_exceptions [ruby_special_error_count]
VALUE | top_self
VALUE | load_path
VALUE | load_path_snapshot
VALUE | load_path_check_cache
VALUE | expanded_load_path
VALUE | loaded_features
VALUE | loaded_features_snapshot
struct st_table * | loaded_features_index
struct st_table * | loading_table
struct {
VALUE cmd
int safe
} | trap_list [RUBY_NSIG]
rb_hook_list_t | event_hooks
int | src_encoding_index
VALUE | verbose
VALUE | debug
VALUE | progname
VALUE | coverages
struct unlinked_method_entry_list_entry * | unlinked_method_entry_list
struct rb_objspace * | objspace
struct RArray | at_exit
VALUE * | defined_strings
struct {
size_t thread_vm_stack_size
size_t thread_machine_stack_size
size_t fiber_vm_stack_size
size_t fiber_machine_stack_size
} | default_params

## Detailed Description

Definition at line 337 of file vm_core.h.

## Field Documentation

struct RArray rb_vm_struct::at_exit

Definition at line 394 of file vm_core.h.

Referenced by ruby_vm_run_at_exit_hooks(), and vm_init2().

VALUE rb_vm_struct::cmd

Definition at line 372 of file vm_core.h.

Referenced by rb_signal_exec(), rb_trap_exit(), rb_vm_mark(), and trap().

VALUE rb_vm_struct::coverages

Definition at line 382 of file vm_core.h.

Referenced by rb_vm_mark().

VALUE rb_vm_struct::debug

Definition at line 381 of file vm_core.h.

Referenced by ruby_vm_debug_ptr().

struct { ... } rb_vm_struct::default_params

Referenced by fiber_init(), th_init(), and vm_default_params_setup().

VALUE* rb_vm_struct::defined_strings

Definition at line 396 of file vm_core.h.

Referenced by rb_vm_mark(), and vm_memsize().

rb_hook_list_t rb_vm_struct::event_hooks

Definition at line 377 of file vm_core.h.

Referenced by rb_threadptr_exec_event_hooks_orig(), and rb_vm_mark().

VALUE rb_vm_struct::expanded_load_path

Definition at line 364 of file vm_core.h.

Referenced by Init_load(), rb_construct_expanded_load_path(), rb_get_expanded_load_path(), and rb_vm_mark().

size_t rb_vm_struct::fiber_machine_stack_size

Definition at line 403 of file vm_core.h.

Referenced by vm_default_params_setup().

size_t rb_vm_struct::fiber_vm_stack_size

Definition at line 402 of file vm_core.h.

Referenced by fiber_init(), and vm_default_params_setup().

rb_global_vm_lock_t rb_vm_struct::gvl

Definition at line 340 of file vm_core.h.

st_table* rb_vm_struct::living_threads

Definition at line 346 of file vm_core.h.

Referenced by Init_VM(), rb_check_deadlock(), rb_thread_atfork_internal(), rb_thread_terminate_all(), rb_vm_mark(), ruby_vm_destruct(), thread_create_core(), thread_start_func_2(), vm_living_thread_num(), and vm_memsize().

VALUE rb_vm_struct::load_path

Definition at line 361 of file vm_core.h.

Referenced by Init_load(), load_path_getter(), rb_construct_expanded_load_path(), rb_get_expanded_load_path(), and rb_vm_mark().

VALUE rb_vm_struct::load_path_check_cache

Definition at line 363 of file vm_core.h.

Referenced by Init_load(), rb_get_expanded_load_path(), and rb_vm_mark().

VALUE rb_vm_struct::load_path_snapshot

Definition at line 362 of file vm_core.h.

Referenced by Init_load(), rb_construct_expanded_load_path(), rb_get_expanded_load_path(), and rb_vm_mark().

VALUE rb_vm_struct::loaded_features

Definition at line 365 of file vm_core.h.

Referenced by get_loaded_features_index(), Init_load(), rb_vm_bugreport(), rb_vm_mark(), and reset_loaded_features_snapshot().

struct st_table* rb_vm_struct::loaded_features_index

Definition at line 367 of file vm_core.h.

Referenced by get_loaded_features_index(), Init_load(), and rb_vm_mark().

VALUE rb_vm_struct::loaded_features_snapshot

Definition at line 366 of file vm_core.h.

Referenced by get_loaded_features_index(), Init_load(), rb_vm_mark(), and reset_loaded_features_snapshot().

struct st_table* rb_vm_struct::loading_table

Definition at line 368 of file vm_core.h.

Referenced by rb_vm_mark().

struct rb_thread_struct* rb_vm_struct::main_thread

Definition at line 343 of file vm_core.h.

Referenced by Init_VM(), rb_check_deadlock(), rb_thread_atfork_internal(), rb_thread_kill(), rb_thread_main(), rb_thread_terminate_all(), rb_threadptr_execute_interrupts(), rb_threadptr_signal_exit(), rb_threadptr_signal_raise(), ruby_vm_destruct(), thread_free(), thread_start_func_2(), and timer_thread_function().

VALUE rb_vm_struct::mark_object_ary

Definition at line 355 of file vm_core.h.

Referenced by Init_top_self(), rb_gc_register_mark_object(), and rb_vm_mark().

struct rb_objspace* rb_vm_struct::objspace

Definition at line 387 of file vm_core.h.

Referenced by Init_BareVM(), and ruby_vm_destruct().

VALUE rb_vm_struct::progname

Definition at line 381 of file vm_core.h.

Referenced by location_to_str(), oldbt_init(), and rb_vm_bugreport().

int rb_vm_struct::running

Definition at line 349 of file vm_core.h.

struct rb_thread_struct* rb_vm_struct::running_thread

Definition at line 344 of file vm_core.h.

Referenced by Init_VM(), and timer_thread_function().

int rb_vm_struct::safe

Definition at line 373 of file vm_core.h.

Referenced by rb_signal_exec(), rb_trap_exit(), and trap().

VALUE rb_vm_struct::self

Definition at line 338 of file vm_core.h.

Referenced by gc_marks(), Init_VM(), and ruby_vm_destruct().

volatile int rb_vm_struct::sleeper

Definition at line 352 of file vm_core.h.

Referenced by rb_check_deadlock(), rb_mutex_lock(), rb_thread_atfork_internal(), and sleep_forever().

VALUE rb_vm_struct::special_exceptions[ruby_special_error_count]

Definition at line 357 of file vm_core.h.

Referenced by rb_vm_mark(), and thread_fd_close_i().

int rb_vm_struct::src_encoding_index

Definition at line 379 of file vm_core.h.

Referenced by vm_init2().

VALUE rb_vm_struct::thgroup_default

Definition at line 347 of file vm_core.h.

Referenced by Init_Thread(), and rb_vm_mark().

int rb_vm_struct::thread_abort_on_exception

Definition at line 350 of file vm_core.h.

Referenced by rb_thread_s_abort_exc(), rb_thread_s_abort_exc_set(), and thread_start_func_2().

rb_thread_lock_t rb_vm_struct::thread_destruct_lock

Definition at line 341 of file vm_core.h.

Referenced by Init_Thread(), rb_vm_gvl_destroy(), and timer_thread_function().

size_t rb_vm_struct::thread_machine_stack_size

Definition at line 401 of file vm_core.h.

Referenced by vm_default_params_setup().

size_t rb_vm_struct::thread_vm_stack_size

Definition at line 400 of file vm_core.h.

Referenced by th_init(), and vm_default_params_setup().

VALUE rb_vm_struct::top_self

Definition at line 360 of file vm_core.h.

Referenced by Init_top_self(), and rb_vm_mark().

int rb_vm_struct::trace_running

Definition at line 351 of file vm_core.h.

Referenced by rb_suppress_tracing(), and rb_threadptr_exec_event_hooks_orig().

struct { ... } rb_vm_struct::trap_list[RUBY_NSIG]

Referenced by rb_signal_exec(), rb_trap_exit(), rb_vm_mark(), and trap().

struct unlinked_method_entry_list_entry* rb_vm_struct::unlinked_method_entry_list

Definition at line 384 of file vm_core.h.

Referenced by rb_gc_mark_unlinked_live_method_entries(), and rb_sweep_method_entry().

VALUE rb_vm_struct::verbose

Definition at line 381 of file vm_core.h.

Referenced by ruby_vm_verbose_ptr().

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

- vm_core.h