diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-24 10:59:27 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-24 14:28:47 +0900 |
commit | 6f29716f9ffb710af7f344839ec67ef2b8a48ab2 (patch) | |
tree | 296e34994f4670acfe02bca27e5a4864629a5248 /ractor_core.h | |
parent | 1e215a66d26d56befab4fbb72e1d953879411955 (diff) |
shareable_constant_value: experimental_copy
"experimental_everything" makes the assigned value, it means
the assignment change the state of assigned value.
"experimental_copy" tries to make a deep copy and make copyied object
sharable.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3989
Diffstat (limited to 'ractor_core.h')
-rw-r--r-- | ractor_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ractor_core.h b/ractor_core.h index 0aa66f65d0..2516277f4f 100644 --- a/ractor_core.h +++ b/ractor_core.h @@ -184,6 +184,8 @@ bool rb_ractor_main_p_(void); void rb_ractor_finish_marking(void); void rb_ractor_atfork(rb_vm_t *vm, rb_thread_t *th); +VALUE rb_ractor_ensure_shareable(VALUE obj, VALUE name); + RUBY_SYMBOL_EXPORT_BEGIN bool rb_ractor_shareable_p_continue(VALUE obj); |