ruby-changes:42040
From: nobu <ko1@a...>
Date: Tue, 15 Mar 2016 15:42:31 +0900 (JST)
Subject: [ruby-changes:42040] nobu:r54114 (trunk): gc.c: expand a local macro
nobu 2016-03-15 15:42:27 +0900 (Tue, 15 Mar 2016) New Revision: 54114 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54114 Log: gc.c: expand a local macro * gc.c (mark_current_machine_context, rb_gc_mark_machine_stack): expand rb_gc_mark_locations local macro. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 54113) +++ gc.c (revision 54114) @@ -3964,8 +3964,6 @@ rb_gc_mark_values(long n, const VALUE *v https://github.com/ruby/ruby/blob/trunk/gc.c#L3964 } } -#define rb_gc_mark_locations(start, end) gc_mark_locations(objspace, (start), (end)) - static int mark_entry(st_data_t key, st_data_t value, st_data_t data) { @@ -4130,13 +4128,16 @@ mark_current_machine_context(rb_objspace https://github.com/ruby/ruby/blob/trunk/gc.c#L4128 mark_locations_array(objspace, save_regs_gc_mark.v, numberof(save_regs_gc_mark.v)); - rb_gc_mark_locations(stack_start, stack_end); + gc_mark_locations(objspace, stack_start, stack_end); #ifdef __ia64 - rb_gc_mark_locations(th->machine.register_stack_start, th->machine.register_stack_end); + gc_mark_locations(objspace, + th->machine.register_stack_start, + th->machine.register_stack_end); #endif #if defined(__mc68000__) - rb_gc_mark_locations((VALUE*)((char*)stack_start + 2), - (VALUE*)((char*)stack_end - 2)); + gc_mark_locations(objspace, + (VALUE*)((char*)stack_start + 2), + (VALUE*)((char*)stack_end - 2)); #endif } @@ -4147,13 +4148,16 @@ rb_gc_mark_machine_stack(rb_thread_t *th https://github.com/ruby/ruby/blob/trunk/gc.c#L4148 VALUE *stack_start, *stack_end; GET_STACK_BOUNDS(stack_start, stack_end, 0); - rb_gc_mark_locations(stack_start, stack_end); + gc_mark_locations(objspace, stack_start, stack_end); #ifdef __ia64 - rb_gc_mark_locations(th->machine.register_stack_start, th->machine.register_stack_end); + gc_mark_locations(objspace, + th->machine.register_stack_start, + th->machine.register_stack_end); #endif #if defined(__mc68000__) - rb_gc_mark_locations((VALUE*)((char*)stack_start + 2), - (VALUE*)((char*)stack_end - 2)); + gc_mark_locations(objspace, + (VALUE*)((char*)stack_start + 2), + (VALUE*)((char*)stack_end - 2)); #endif } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/