Skip to content

Commit

Permalink
gc.c: use each_stack_location for emscripten
Browse files Browse the repository at this point in the history
follow up of e4e4163
  • Loading branch information
mame committed Jul 7, 2021
1 parent c082c6e commit 1293042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6461,10 +6461,10 @@ static void
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

Expand Down

0 comments on commit 1293042

Please sign in to comment.