diff options
| author | nagachika <nagachika@ruby-lang.org> | 2026-04-26 20:30:55 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2026-04-26 20:30:55 +0900 |
| commit | c1487868e98300c6decc6b84f4867624efb53c5a (patch) | |
| tree | c1afd0a2a2addbbf8e2a80f02fcc987c634bb3dd | |
| parent | e8ef5265389298b2058eac23853c861b54d5b0c2 (diff) | |
merge revision(s) a05d5ecb1253521cf3b17815a97a152bac6c3399:
[PATCH] Add write barriers on Hash#rehash
| -rw-r--r-- | hash.c | 3 | ||||
| -rw-r--r-- | version.h | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1982,6 +1982,9 @@ rb_hash_rehash_i(VALUE key, VALUE value, VALUE arg) else { st_insert(RHASH_ST_TABLE(arg), (st_data_t)key, (st_data_t)value); } + + RB_OBJ_WRITTEN(arg, Qundef, key); + RB_OBJ_WRITTEN(arg, Qundef, value); return ST_CONTINUE; } @@ -11,7 +11,7 @@ # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR #define RUBY_VERSION_TEENY 9 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR -#define RUBY_PATCHLEVEL 82 +#define RUBY_PATCHLEVEL 83 #include "ruby/version.h" #include "ruby/internal/abi.h" |
