ruby-changes:59773
From: 0x005c <ko1@a...>
Date: Wed, 22 Jan 2020 20:11:33 +0900 (JST)
Subject: [ruby-changes:59773] 461db352c2 (master): Rename RUBY_MARK_NO_PIN_UNLESS_NULL to RUBY_MARK_MOVABLE_UNLESS_NULL
https://git.ruby-lang.org/ruby.git/commit/?id=461db352c2 From 461db352c22c0ffb5c0db295238f97f44168e6cc Mon Sep 17 00:00:00 2001 From: 0x005c <52650857+0x005c@u...> Date: Wed, 8 Jan 2020 20:40:08 +0900 Subject: Rename RUBY_MARK_NO_PIN_UNLESS_NULL to RUBY_MARK_MOVABLE_UNLESS_NULL diff --git a/gc.h b/gc.h index 750d878..6568079 100644 --- a/gc.h +++ b/gc.h @@ -59,7 +59,7 @@ rb_gc_debug_body(const char *mode, const char *msg, int st, void *ptr) https://github.com/ruby/ruby/blob/trunk/gc.h#L59 #define RUBY_GC_INFO if(0)printf #endif -#define RUBY_MARK_NO_PIN_UNLESS_NULL(ptr) do { \ +#define RUBY_MARK_MOVABLE_UNLESS_NULL(ptr) do { \ VALUE markobj = (ptr); \ if (RTEST(markobj)) {rb_gc_mark_movable(markobj);} \ } while (0) diff --git a/iseq.c b/iseq.c index 2f40efc..a294f08 100644 --- a/iseq.c +++ b/iseq.c @@ -314,7 +314,7 @@ rb_iseq_mark(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/iseq.c#L314 rb_gc_mark_movable(body->location.label); rb_gc_mark_movable(body->location.base_label); rb_gc_mark_movable(body->location.pathobj); - RUBY_MARK_NO_PIN_UNLESS_NULL((VALUE)body->parent_iseq); + RUBY_MARK_MOVABLE_UNLESS_NULL((VALUE)body->parent_iseq); if (body->param.flags.has_kw && ISEQ_COMPILE_DATA(iseq) == NULL) { const struct rb_iseq_param_keyword *const keyword = body->param.keyword; diff --git a/proc.c b/proc.c index 5434e8d..01efab7 100644 --- a/proc.c +++ b/proc.c @@ -66,18 +66,18 @@ block_mark(const struct rb_block *block) https://github.com/ruby/ruby/blob/trunk/proc.c#L66 case block_type_ifunc: { const struct rb_captured_block *captured = &block->as.captured; - RUBY_MARK_NO_PIN_UNLESS_NULL(captured->self); - RUBY_MARK_NO_PIN_UNLESS_NULL((VALUE)captured->code.val); + RUBY_MARK_MOVABLE_UNLESS_NULL(captured->self); + RUBY_MARK_MOVABLE_UNLESS_NULL((VALUE)captured->code.val); if (captured->ep && captured->ep[VM_ENV_DATA_INDEX_ENV] != Qundef /* cfunc_proc_t */) { - RUBY_MARK_NO_PIN_UNLESS_NULL(VM_ENV_ENVVAL(captured->ep)); + RUBY_MARK_MOVABLE_UNLESS_NULL(VM_ENV_ENVVAL(captured->ep)); } } break; case block_type_symbol: - RUBY_MARK_NO_PIN_UNLESS_NULL(block->as.symbol); + RUBY_MARK_MOVABLE_UNLESS_NULL(block->as.symbol); break; case block_type_proc: - RUBY_MARK_NO_PIN_UNLESS_NULL(block->as.proc); + RUBY_MARK_MOVABLE_UNLESS_NULL(block->as.proc); break; } } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/