diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2023-02-10 14:32:46 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-02-10 16:12:22 +0100 |
commit | 46298955e42600eeeffd53dd683961d5f725e253 (patch) | |
tree | b50310d5c7a19d34316b6b0d4cd5e7be9f17fa86 /include | |
parent | 11e0f62148de721538e69c174edc981b05079cda (diff) |
Implement Write Barrier for RMatch objects
They only have two references.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7286
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/internal/rgengc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ruby/internal/rgengc.h b/include/ruby/internal/rgengc.h index 7ea04442f6..f65595f357 100644 --- a/include/ruby/internal/rgengc.h +++ b/include/ruby/internal/rgengc.h @@ -133,6 +133,17 @@ * @private * * This is a compile-time flag to enable/disable write barrier for + * struct ::RMatch. It has to be set at the time ruby itself compiles. Makes + * no sense for 3rd parties. + */ +#ifndef RGENGC_WB_PROTECTED_MATCH +# define RGENGC_WB_PROTECTED_MATCH 1 +#endif + +/** + * @private + * + * This is a compile-time flag to enable/disable write barrier for * struct ::RClass. It has to be set at the time ruby itself compiles. Makes * no sense for 3rd parties. */ |