ruby-changes:58476
From: Aaron <ko1@a...>
Date: Tue, 29 Oct 2019 03:47:31 +0900 (JST)
Subject: [ruby-changes:58476] 339a891c7d (master): Pin keys of this st_table
https://git.ruby-lang.org/ruby.git/commit/?id=339a891c7d From 339a891c7d9c56f27f10ed9a9e60f511f75da934 Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Tue, 8 Oct 2019 13:15:44 -0700 Subject: Pin keys of this st_table diff --git a/compile.c b/compile.c index 72b60c1..a478324 100644 --- a/compile.c +++ b/compile.c @@ -9039,7 +9039,7 @@ rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc, VALUE locals, VALUE params, https://github.com/ruby/ruby/blob/trunk/compile.c#L9039 unsigned int arg_size, local_size, stack_max; ID *tbl; struct st_table *labels_table = st_init_numtable(); - VALUE labels_wrapper = Data_Wrap_Struct(0, 0, st_free_table, labels_table); + VALUE labels_wrapper = Data_Wrap_Struct(0, rb_mark_set, st_free_table, labels_table); VALUE arg_opt_labels = rb_hash_aref(params, SYM(opt)); VALUE keywords = rb_hash_aref(params, SYM(keyword)); VALUE sym_arg_rest = ID2SYM(rb_intern("#arg_rest")); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/