mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rename mark_current_thread to mark_current_machine_context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4608b08d1f
commit
bb44ba9b72
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
Sat Jul 14 16:11:24 2007 Tanaka Akira <akr@fsij.org>
|
Sat Jul 14 18:46:35 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* configure.in: add --with-valgrind.
|
* configure.in: add --with-valgrind.
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Sat Jul 14 16:11:24 2007 Tanaka Akira <akr@fsij.org>
|
||||||
* thread.c (rb_gc_set_stack_end): don't define if asm-version
|
* thread.c (rb_gc_set_stack_end): don't define if asm-version
|
||||||
SET_MACHINE_STACK_END is available.
|
SET_MACHINE_STACK_END is available.
|
||||||
|
|
||||||
* gc.c (mark_current_thread): extracted from garbage_collect.
|
* gc.c (mark_current_machine_context): extracted from garbage_collect.
|
||||||
it use SET_MACHINE_STACK_END to not scan out of stack area.
|
it use SET_MACHINE_STACK_END to not scan out of stack area.
|
||||||
it notify conservative GC information to valgrind if
|
it notify conservative GC information to valgrind if
|
||||||
--with-valgrind.
|
--with-valgrind.
|
||||||
|
|
4
gc.c
4
gc.c
|
@ -1377,7 +1377,7 @@ int rb_setjmp (rb_jmp_buf);
|
||||||
void rb_vm_mark(void *ptr);
|
void rb_vm_mark(void *ptr);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
mark_current_thread(rb_thread_t *th)
|
mark_current_machine_context(rb_thread_t *th)
|
||||||
{
|
{
|
||||||
jmp_buf save_regs_gc_mark;
|
jmp_buf save_regs_gc_mark;
|
||||||
VALUE *stack_start, *stack_end;
|
VALUE *stack_start, *stack_end;
|
||||||
|
@ -1470,7 +1470,7 @@ garbage_collect(void)
|
||||||
mark_tbl(finalizer_table, 0);
|
mark_tbl(finalizer_table, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
mark_current_thread(th);
|
mark_current_machine_context(th);
|
||||||
|
|
||||||
rb_gc_mark_threads();
|
rb_gc_mark_threads();
|
||||||
rb_gc_mark_symbols();
|
rb_gc_mark_symbols();
|
||||||
|
|
Loading…
Reference in a new issue