summaryrefslogtreecommitdiff
path: root/ext/objspace
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-10-17 10:13:07 +0900
committerKoichi Sasada <ko1@atdot.net>2020-10-19 14:06:40 +0900
commitde17e2dea137bc5ba9f00e3acec32792d0dbb2eb (patch)
tree6943dc3947a4b93ab5b69d6d4147bc0fa7c2b99a /ext/objspace
parentf1f8f38079034c45cac86861342d0b93cc672dcd (diff)
reduce lock for encoding
To reduce the number of locking for encoding manipulation, enc_table::list is splited to ::default_list and ::additional_list. ::default_list is pre-allocated and no need locking to access to the ::default_list. If additional encoding space is needed, use ::additional_list and this list need to use locking. However, most of case, ::default_list is enough.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3664
Diffstat (limited to 'ext/objspace')
0 files changed, 0 insertions, 0 deletions