diff options
| author | Koichi Sasada <ko1@atdot.net> | 2020-09-04 05:51:55 +0900 |
|---|---|---|
| committer | Koichi Sasada <ko1@atdot.net> | 2020-09-04 14:18:48 +0900 |
| commit | 3b0bcaf2872e5ab6d2475e9cd6dd5c374d93ae0b (patch) | |
| tree | bec58277c5c1efe374236f8438661ad633740d13 /spec/ruby/core/thread | |
| parent | 169b1d1aca0c26d38f8bbd25ecaf5fdb8015f5cf (diff) | |
check multi_ractor mode at main_p
rb_ractor_main_p() need to access to the ractor pointer in TLS.
However it is slow operation so that we need to skip this check
if it is not multi-ractor mode (!ruby_multi_ractor).
This performance regression is pointed at
https://bugs.ruby-lang.org/issues/17100#note-27
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3513
Diffstat (limited to 'spec/ruby/core/thread')
0 files changed, 0 insertions, 0 deletions
