ruby-changes:57711
From: Aaron <ko1@a...>
Date: Wed, 11 Sep 2019 02:45:59 +0900 (JST)
Subject: [ruby-changes:57711] 414a80d242 (master): `NODE_MATCH` needs to be marked / allocated from marking bucket
https://git.ruby-lang.org/ruby.git/commit/?id=414a80d242 From 414a80d242796059d69e8980073b5420910cab50 Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Tue, 10 Sep 2019 10:44:49 -0700 Subject: `NODE_MATCH` needs to be marked / allocated from marking bucket Fixes a test in RubySpec diff --git a/node.c b/node.c index 0e1b04b..4a265c3 100644 --- a/node.c +++ b/node.c @@ -1194,6 +1194,7 @@ rb_ast_newnode(rb_ast_t *ast, enum node_type type) https://github.com/ruby/ruby/blob/trunk/node.c#L1194 { node_buffer_t *nb = ast->node_buffer; switch (type) { + case NODE_MATCH: case NODE_LIT: case NODE_STR: case NODE_XSTR: @@ -1277,6 +1278,7 @@ mark_ast_value(void *ctx, NODE * node) https://github.com/ruby/ruby/blob/trunk/node.c#L1278 rb_gc_mark(args->imemo); break; } + case NODE_MATCH: case NODE_LIT: case NODE_STR: case NODE_XSTR: @@ -1287,7 +1289,7 @@ mark_ast_value(void *ctx, NODE * node) https://github.com/ruby/ruby/blob/trunk/node.c#L1289 rb_gc_mark(node->nd_lit); break; default: - rb_bug("unreachable"); + rb_bug("unreachable node %s", ruby_node_name(nd_type(node))); } } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/