diff options
author | Jean Boussier <[email protected]> | 2023-02-03 13:15:26 +0100 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2023-02-03 19:10:42 +0100 |
commit | c6b90e5e9cc9bad4156881b6ab227d0f8a04cf7a (patch) | |
tree | 4e79cccf79c1d0f56f52fb86d9b08da83965748b /string.c | |
parent | 08c529be900b2bee13858faa5a27933dfe645abb (diff) |
Mark "mapping_buffer" as write barrier protected
It doesn't have any reference so it can be marked as protected.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7238
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7314,7 +7314,8 @@ mapping_buffer_free(void *p) static const rb_data_type_t mapping_buffer_type = { "mapping_buffer", - {0, mapping_buffer_free,} + {0, mapping_buffer_free,}, + 0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED }; static VALUE |