diff options
author | Samuel Williams <[email protected]> | 2019-06-20 13:41:18 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2019-06-20 13:41:18 +1200 |
commit | dbc2b89bc042d73e60aeb7d56686aa28d82e2622 (patch) | |
tree | 24df8e3faf9d37b9020c23ce21c2c769beb13920 /vm_core.h | |
parent | 6bf1285b2069ff736e283a1f8328852e3175fccc (diff) |
Ensure `vm_stack` is cleared after fork.
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -907,6 +907,10 @@ void rb_ec_set_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size); // @param size the size of the stack, as in `VALUE stack[size]`. void rb_ec_initialize_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size); +// Clear (set to `NULL`) the vm_stack pointer and frame pointer in the execution context. +// @param ec the execution context to update. +void rb_ec_clear_vm_stack(rb_execution_context_t *ec); + typedef struct rb_thread_struct { struct list_node vmlt_node; VALUE self; |