diff options
author | Koichi Sasada <ko1@atdot.net> | 2021-02-18 17:59:40 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2021-02-18 22:35:34 +0900 |
commit | 7b9476fbfab738d1eb01b4b4c4af9a1680513019 (patch) | |
tree | a4095677eb0b686528a7752b7aabba88f3bd27bb /ractor.c | |
parent | 9a5da2dcff51dfd845246cc21645369d1f7201c8 (diff) |
Ractor.allocate should not be allowed
Ractor.allocate and Ractor#dup should not be allowed like Thread.
[Bug #17642]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4198
Diffstat (limited to 'ractor.c')
-rw-r--r-- | ractor.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2088,6 +2088,8 @@ void Init_Ractor(void) { rb_cRactor = rb_define_class("Ractor", rb_cObject); + rb_undef_alloc_func(rb_cRactor); + rb_eRactorError = rb_define_class_under(rb_cRactor, "Error", rb_eRuntimeError); rb_eRactorIsolationError = rb_define_class_under(rb_cRactor, "IsolationError", rb_eRactorError); rb_eRactorRemoteError = rb_define_class_under(rb_cRactor, "RemoteError", rb_eRactorError); |