Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

Data Fields
rb_vm_struct Struct Reference

`#include <vm_core.h>`

## Data Fields
VALUE | self
rb_global_vm_lock_t | gvl
struct rb_thread_struct * | main_thread
const struct rb_thread_struct * | running_thread
rb_serial_t | fork_gen
rb_nativethread_lock_t | waitpid_lock
struct list_head | waiting_pids
struct list_head | waiting_grps
struct list_head | waiting_fds
struct list_head | living_threads
VALUE | thgroup_default
int | living_thread_num
volatile int | ubf_async_safe
unsigned int | running: 1
unsigned int | thread_abort_on_exception: 1
unsigned int | thread_report_on_exception: 1
unsigned int | safe_level_: 1
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_table * | loaded_features_index
struct st_table * | loading_table
struct {
VALUE cmd [RUBY_NSIG]
} | trap_list
rb_hook_list_t | global_hooks
struct st_table * | ensure_rollback_table
struct rb_postponed_job_struct * | postponed_job_buffer
int | postponed_job_index
int | src_encoding_index
struct list_head | workqueue
rb_nativethread_lock_t | workqueue_lock
VALUE | verbose
VALUE | debug
VALUE | orig_progname
VALUE | progname
VALUE | coverages
int | coverage_mode
st_table * | defined_module_hash
struct rb_objspace * | objspace
rb_at_exit_list * | at_exit
VALUE * | defined_strings
st_table * | frozen_strings
const struct rb_builtin_function * | builtin_function_table
int | builtin_inline_index
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_]
void * | main_altstack
struct {
VALUE cmd [65]
} | trap_list
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 576 of file vm_core.h.

## Field Documentation

## ◆ at_exit

rb_at_exit_list * rb_vm_struct::at_exit

Definition at line 653 of file vm_core.h.

Referenced by ruby_vm_at_exit().

## ◆ builtin_function_table

const struct rb_builtin_function * rb_vm_struct::builtin_function_table

Definition at line 658 of file vm_core.h.

## ◆ builtin_inline_index

int rb_vm_struct::builtin_inline_index

Definition at line 659 of file vm_core.h.

## ◆ cmd

VALUE rb_vm_struct::cmd[65]

Definition at line 626 of file vm_core.h.

Referenced by rb_signal_exec(), rb_vm_mark(), and rb_vm_trap_exit().

## ◆ coverage_mode

int rb_vm_struct::coverage_mode

Definition at line 647 of file vm_core.h.

## ◆ coverages

VALUE rb_vm_struct::coverages

Definition at line 646 of file vm_core.h.

Referenced by rb_vm_mark().

## ◆ debug

VALUE rb_vm_struct::debug

Definition at line 645 of file vm_core.h.

## ◆ default_params [1/2]

struct { ... } rb_vm_struct::default_params

Referenced by Init_Cont().

## ◆ default_params [2/2]

struct { ... } rb_vm_struct::default_params

## ◆ defined_module_hash

st_table * rb_vm_struct::defined_module_hash

Definition at line 649 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 655 of file vm_core.h.

## ◆ ensure_rollback_table

struct st_table * rb_vm_struct::ensure_rollback_table

Definition at line 633 of file vm_core.h.

## ◆ expanded_load_path

VALUE rb_vm_struct::expanded_load_path

Definition at line 618 of file vm_core.h.

Referenced by rb_vm_mark().

## ◆ fiber_machine_stack_size

size_t rb_vm_struct::fiber_machine_stack_size

Definition at line 666 of file vm_core.h.

Referenced by Init_Cont().

## ◆ fiber_vm_stack_size

size_t rb_vm_struct::fiber_vm_stack_size

Definition at line 665 of file vm_core.h.

Referenced by Init_Cont().

## ◆ fork_gen

rb_serial_t rb_vm_struct::fork_gen

Definition at line 590 of file vm_core.h.

## ◆ frozen_strings

st_table * rb_vm_struct::frozen_strings

Definition at line 656 of file vm_core.h.

Referenced by Init_vm_objects(), and rb_vm_update_references().

## ◆ global_hooks

rb_hook_list_t rb_vm_struct::global_hooks

Definition at line 630 of file vm_core.h.

Referenced by rb_vm_mark().

## ◆ gvl

rb_global_vm_lock_t rb_vm_struct::gvl

Definition at line 579 of file vm_core.h.

## ◆ living_thread_num

int rb_vm_struct::living_thread_num

Definition at line 597 of file vm_core.h.

## ◆ living_threads

struct list_head rb_vm_struct::living_threads

Definition at line 595 of file vm_core.h.

Referenced by rb_thread_list(), rb_vm_mark(), and rb_vmdebug_stack_dump_all_threads().

## ◆ load_path

VALUE rb_vm_struct::load_path

Definition at line 615 of file vm_core.h.

Referenced by rb_get_expanded_load_path(), and rb_vm_mark().

## ◆ load_path_check_cache

VALUE rb_vm_struct::load_path_check_cache

Definition at line 617 of file vm_core.h.

Referenced by rb_vm_mark().

## ◆ load_path_snapshot

VALUE rb_vm_struct::load_path_snapshot

Definition at line 616 of file vm_core.h.

Referenced by rb_get_expanded_load_path(), and rb_vm_mark().

## ◆ loaded_features

VALUE rb_vm_struct::loaded_features

Definition at line 619 of file vm_core.h.

Referenced by rb_vm_bugreport(), and rb_vm_mark().

## ◆ loaded_features_index

struct st_table * rb_vm_struct::loaded_features_index

Definition at line 621 of file vm_core.h.

## ◆ loaded_features_snapshot

VALUE rb_vm_struct::loaded_features_snapshot

Definition at line 620 of file vm_core.h.

Referenced by rb_vm_mark().

## ◆ loading_table

struct st_table * rb_vm_struct::loading_table

Definition at line 622 of file vm_core.h.

Referenced by Init_vm_objects(), and rb_vm_mark().

## ◆ main_altstack

void* rb_vm_struct::main_altstack

Definition at line 9688 of file rb_mjit_min_header-2.7.0.h.

## ◆ main_thread

struct rb_thread_struct * rb_vm_struct::main_thread

Definition at line 581 of file vm_core.h.

Referenced by rb_thread_terminate_all(), and ruby_vm_destruct().

## ◆ mark_object_ary

VALUE rb_vm_struct::mark_object_ary

Definition at line 610 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 651 of file vm_core.h.

Referenced by ruby_vm_destruct().

## ◆ orig_progname

VALUE rb_vm_struct::orig_progname

Definition at line 645 of file vm_core.h.

Referenced by rb_vm_mark().

## ◆ postponed_job_buffer

struct rb_postponed_job_struct * rb_vm_struct::postponed_job_buffer

Definition at line 636 of file vm_core.h.

Referenced by Init_vm_postponed_job().

## ◆ postponed_job_index

int rb_vm_struct::postponed_job_index

Definition at line 637 of file vm_core.h.

Referenced by Init_vm_postponed_job().

## ◆ progname

VALUE rb_vm_struct::progname

Definition at line 645 of file vm_core.h.

Referenced by rb_vm_bugreport().

## ◆ redefined_flag

short rb_vm_struct::redefined_flag

Definition at line 669 of file vm_core.h.

## ◆ running

unsigned int rb_vm_struct::running

Definition at line 602 of file vm_core.h.

## ◆ running_thread

const struct rb_thread_struct * rb_vm_struct::running_thread

Definition at line 584 of file vm_core.h.

## ◆ safe_level_

unsigned int rb_vm_struct::safe_level_

Definition at line 606 of file vm_core.h.

Referenced by rb_set_safe_level().

## ◆ self

VALUE rb_vm_struct::self

Definition at line 577 of file vm_core.h.

## ◆ sleeper

int rb_vm_struct::sleeper

Definition at line 607 of file vm_core.h.

## ◆ special_exceptions

const VALUE rb_vm_struct::special_exceptions

Definition at line 611 of file vm_core.h.

Referenced by rb_notify_fd_close(), and rb_vm_register_special_exception_str().

## ◆ src_encoding_index

int rb_vm_struct::src_encoding_index

Definition at line 639 of file vm_core.h.

## ◆ thgroup_default

VALUE rb_vm_struct::thgroup_default

Definition at line 596 of file vm_core.h.

Referenced by rb_vm_mark().

## ◆ thread_abort_on_exception

unsigned int rb_vm_struct::thread_abort_on_exception

Definition at line 603 of file vm_core.h.

## ◆ thread_machine_stack_size

size_t rb_vm_struct::thread_machine_stack_size

Definition at line 664 of file vm_core.h.

## ◆ thread_report_on_exception

unsigned int rb_vm_struct::thread_report_on_exception

Definition at line 604 of file vm_core.h.

## ◆ thread_vm_stack_size

size_t rb_vm_struct::thread_vm_stack_size

Definition at line 663 of file vm_core.h.

## ◆ top_self

VALUE rb_vm_struct::top_self

Definition at line 614 of file vm_core.h.

Referenced by Init_top_self(), and rb_vm_mark().

## ◆ trap_list [1/2]

struct { ... } rb_vm_struct::trap_list

Referenced by rb_signal_exec(), rb_vm_mark(), and rb_vm_trap_exit().

## ◆ trap_list [2/2]

struct { ... } rb_vm_struct::trap_list

## ◆ ubf_async_safe

volatile int rb_vm_struct::ubf_async_safe

Definition at line 600 of file vm_core.h.

## ◆ verbose

VALUE rb_vm_struct::verbose

Definition at line 645 of file vm_core.h.

## ◆ waiting_fds

struct list_head rb_vm_struct::waiting_fds

Definition at line 594 of file vm_core.h.

Referenced by rb_notify_fd_close().

## ◆ waiting_grps

struct list_head rb_vm_struct::waiting_grps

Definition at line 593 of file vm_core.h.

Referenced by ruby_waitpid_all().

## ◆ waiting_pids

struct list_head rb_vm_struct::waiting_pids

Definition at line 592 of file vm_core.h.

Referenced by ruby_waitpid_all().

## ◆ waitpid_lock

rb_nativethread_lock_t rb_vm_struct::waitpid_lock

Definition at line 591 of file vm_core.h.

Referenced by rb_grantpt(), rb_sigwait_fd_migrate(), rb_vm_gvl_destroy(), and ruby_waitpid_all().

## ◆ workqueue

struct list_head rb_vm_struct::workqueue

Definition at line 642 of file vm_core.h.

Referenced by rb_workqueue_register().

## ◆ workqueue_lock

rb_nativethread_lock_t rb_vm_struct::workqueue_lock

Definition at line 643 of file vm_core.h.

Referenced by rb_vm_gvl_destroy(), and rb_workqueue_register().

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

- vm_core.h
- /msysdev/ruby/src/build-x86_64-pc-msys/include/ruby-2.7.0/x86_64-msys/rb_mjit_min_header-2.7.0.h