ruby-changes:66709
From: Yusuke <ko1@a...>
Date: Wed, 7 Jul 2021 17:18:26 +0900 (JST)
Subject: [ruby-changes:66709] 1293042307 (master): gc.c: use each_stack_location for emscripten
https://git.ruby-lang.org/ruby.git/commit/?id=1293042307 From 1293042307a5ecdd706212c897a57ff1aed07a0d Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 7 Jul 2021 17:17:52 +0900 Subject: gc.c: use each_stack_location for emscripten follow up of e4e416380d4b1b36ca1cc2e1e1ed993c9be694bb --- gc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gc.c b/gc.c index bdac2b9..b71a209 100644 --- a/gc.c +++ b/gc.c @@ -6461,10 +6461,10 @@ static void https://github.com/ruby/ruby/blob/trunk/gc.c#L6461 mark_current_machine_context(rb_objspace_t *objspace, rb_execution_context_t *ec) { emscripten_scan_stack(rb_emscripten_mark_locations); - mark_stack_locations(objspace, ec, rb_emscripten_stack_range_tmp[0], rb_emscripten_stack_range_tmp[1]); + each_stack_location(objspace, ec, rb_emscripten_stack_range_tmp[0], rb_emscripten_stack_range_tmp[1], gc_mark_maybe); emscripten_scan_registers(rb_emscripten_mark_locations); - mark_stack_locations(objspace, ec, rb_emscripten_stack_range_tmp[0], rb_emscripten_stack_range_tmp[1]); + each_stack_location(objspace, ec, rb_emscripten_stack_range_tmp[0], rb_emscripten_stack_range_tmp[1], gc_mark_maybe); } #endif -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/