Ruby  2.4.2p198(2017-09-14revision59899)
Data Fields
rb_vm_struct Struct Reference

#include <vm_core.h>

Data Fields

VALUE self
 
rb_global_vm_lock_t gvl
 
rb_nativethread_lock_t thread_destruct_lock
 
struct rb_thread_structmain_thread
 
struct rb_thread_structrunning_thread
 
struct list_head waiting_fds
 
struct list_head living_threads
 
size_t living_thread_num
 
VALUE thgroup_default
 
unsigned int running: 1
 
unsigned int thread_abort_on_exception: 1
 
unsigned int thread_report_on_exception: 1
 
int trace_running
 
volatile int sleeper
 
VALUE mark_object_ary
 
const 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_tableloaded_features_index
 
struct st_tableloading_table
 
struct {
   VALUE   cmd
 
   int   safe
 
trap_list [RUBY_NSIG]
 
rb_hook_list_t event_hooks
 
struct st_tableensure_rollback_table
 
struct rb_postponed_job_structpostponed_job_buffer
 
int postponed_job_index
 
int src_encoding_index
 
VALUE verbose
 
VALUE debug
 
VALUE orig_progname
 
VALUE progname
 
VALUE coverages
 
VALUE defined_module_hash
 
struct rb_objspaceobjspace
 
rb_at_exit_listat_exit
 
VALUEdefined_strings
 
st_tablefrozen_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
 
short redefined_flag [BOP_LAST_]
 

Detailed Description

Definition at line 484 of file vm_core.h.

Field Documentation

◆ at_exit

rb_at_exit_list* rb_vm_struct::at_exit

Definition at line 544 of file vm_core.h.

Referenced by ruby_vm_at_exit(), and ruby_vm_run_at_exit_hooks().

◆ cmd

VALUE rb_vm_struct::cmd

Definition at line 521 of file vm_core.h.

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

◆ coverages

VALUE rb_vm_struct::coverages

Definition at line 538 of file vm_core.h.

Referenced by rb_vm_mark().

◆ debug

VALUE rb_vm_struct::debug

Definition at line 537 of file vm_core.h.

Referenced by ruby_vm_debug_ptr().

◆ default_params

struct { ... } rb_vm_struct::default_params

◆ defined_module_hash

VALUE rb_vm_struct::defined_module_hash

Definition at line 540 of file vm_core.h.

Referenced by Init_vm_objects(), rb_vm_add_root_module(), and rb_vm_mark().

◆ defined_strings

VALUE* rb_vm_struct::defined_strings

Definition at line 546 of file vm_core.h.

Referenced by vm_memsize().

◆ ensure_rollback_table

struct st_table* rb_vm_struct::ensure_rollback_table

Definition at line 529 of file vm_core.h.

◆ event_hooks

rb_hook_list_t rb_vm_struct::event_hooks

◆ expanded_load_path

VALUE rb_vm_struct::expanded_load_path

◆ fiber_machine_stack_size

size_t rb_vm_struct::fiber_machine_stack_size

Definition at line 554 of file vm_core.h.

Referenced by cont_restore_thread(), and vm_default_params_setup().

◆ fiber_vm_stack_size

size_t rb_vm_struct::fiber_vm_stack_size

Definition at line 553 of file vm_core.h.

Referenced by fiber_init(), and vm_default_params_setup().

◆ frozen_strings

st_table* rb_vm_struct::frozen_strings

Definition at line 547 of file vm_core.h.

Referenced by Init_vm_objects(), and ruby_vm_destruct().

◆ gvl

rb_global_vm_lock_t rb_vm_struct::gvl

Definition at line 487 of file vm_core.h.

◆ living_thread_num

size_t rb_vm_struct::living_thread_num

◆ living_threads

struct list_head rb_vm_struct::living_threads

◆ load_path

VALUE rb_vm_struct::load_path

◆ load_path_check_cache

VALUE rb_vm_struct::load_path_check_cache

Definition at line 512 of file vm_core.h.

Referenced by rb_get_expanded_load_path(), and rb_vm_mark().

◆ load_path_snapshot

VALUE rb_vm_struct::load_path_snapshot

◆ loaded_features

VALUE rb_vm_struct::loaded_features

◆ loaded_features_index

struct st_table* rb_vm_struct::loaded_features_index

Definition at line 516 of file vm_core.h.

Referenced by get_loaded_features_index().

◆ loaded_features_snapshot

VALUE rb_vm_struct::loaded_features_snapshot

◆ loading_table

struct st_table* rb_vm_struct::loading_table

Definition at line 517 of file vm_core.h.

Referenced by Init_vm_objects(), rb_vm_mark(), and ruby_vm_destruct().

◆ main_thread

struct rb_thread_struct* rb_vm_struct::main_thread

◆ mark_object_ary

VALUE rb_vm_struct::mark_object_ary

Definition at line 505 of file vm_core.h.

Referenced by Init_vm_objects(), and rb_vm_mark().

◆ objspace

struct rb_objspace* rb_vm_struct::objspace

Definition at line 542 of file vm_core.h.

Referenced by Init_BareVM(), and ruby_vm_destruct().

◆ orig_progname

VALUE rb_vm_struct::orig_progname

Definition at line 537 of file vm_core.h.

◆ postponed_job_buffer

struct rb_postponed_job_struct* rb_vm_struct::postponed_job_buffer

◆ postponed_job_index

int rb_vm_struct::postponed_job_index

◆ progname

VALUE rb_vm_struct::progname

Definition at line 537 of file vm_core.h.

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

◆ redefined_flag

short rb_vm_struct::redefined_flag[BOP_LAST_]

Definition at line 557 of file vm_core.h.

◆ running

unsigned int rb_vm_struct::running

Definition at line 498 of file vm_core.h.

◆ running_thread

struct rb_thread_struct* rb_vm_struct::running_thread

Definition at line 491 of file vm_core.h.

Referenced by Init_VM(), and timer_thread_function().

◆ safe

int rb_vm_struct::safe

Definition at line 522 of file vm_core.h.

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

◆ self

VALUE rb_vm_struct::self

Definition at line 485 of file vm_core.h.

Referenced by gc_mark_roots(), Init_VM(), and tracepoint_stat_s().

◆ sleeper

volatile int rb_vm_struct::sleeper

◆ special_exceptions

const VALUE rb_vm_struct::special_exceptions[ruby_special_error_count]

◆ src_encoding_index

int rb_vm_struct::src_encoding_index

Definition at line 535 of file vm_core.h.

Referenced by vm_init2().

◆ thgroup_default

VALUE rb_vm_struct::thgroup_default

Definition at line 496 of file vm_core.h.

Referenced by Init_Thread(), and rb_vm_mark().

◆ thread_abort_on_exception

unsigned int rb_vm_struct::thread_abort_on_exception

Definition at line 499 of file vm_core.h.

◆ thread_destruct_lock

rb_nativethread_lock_t rb_vm_struct::thread_destruct_lock

Definition at line 488 of file vm_core.h.

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

◆ thread_machine_stack_size

size_t rb_vm_struct::thread_machine_stack_size

Definition at line 552 of file vm_core.h.

Referenced by vm_default_params_setup().

◆ thread_report_on_exception

unsigned int rb_vm_struct::thread_report_on_exception

Definition at line 500 of file vm_core.h.

Referenced by thread_create_core().

◆ thread_vm_stack_size

size_t rb_vm_struct::thread_vm_stack_size

Definition at line 551 of file vm_core.h.

Referenced by th_init(), and vm_default_params_setup().

◆ top_self

VALUE rb_vm_struct::top_self

Definition at line 509 of file vm_core.h.

Referenced by Init_top_self(), and rb_vm_mark().

◆ trace_running

int rb_vm_struct::trace_running

◆ trap_list

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

◆ verbose

VALUE rb_vm_struct::verbose

Definition at line 537 of file vm_core.h.

Referenced by ruby_vm_verbose_ptr().

◆ waiting_fds

struct list_head rb_vm_struct::waiting_fds

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