From 4bdb5ced9a06532d33e6aa0dd6be49e863b31d22 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 25 Jun 2007 02:44:20 +0000 Subject: * gc.h: add RUBY_ prefix to debug macros. * cont.c, proc.c, yarvcore.c, * gc.c: define ruby_gc_debug_indent variable to debug mark/free. * vm.c, insnhelper.ci: rename some functions to vm_* or rb_vm_*. move some functions, definitions, declarations to suitable files. * eval.c, yarvcore.h, eval_error.ci, insnhelper.ci: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- cont.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'cont.c') diff --git a/cont.c b/cont.c index 407325d7b9..71bc4601b2 100644 --- a/cont.c +++ b/cont.c @@ -47,7 +47,7 @@ void rb_thread_mark(rb_thread_t *th); static void cont_mark(void *ptr) { - MARK_REPORT_ENTER("cont"); + RUBY_MARK_ENTER("cont"); if (ptr) { rb_context_t *cont = ptr; rb_gc_mark(cont->value); @@ -71,24 +71,24 @@ cont_mark(void *ptr) } #endif } - MARK_REPORT_LEAVE("cont"); + RUBY_MARK_LEAVE("cont"); } static void cont_free(void *ptr) { - FREE_REPORT_ENTER("cont"); + RUBY_FREE_ENTER("cont"); if (ptr) { rb_context_t *cont = ptr; - FREE_UNLESS_NULL(cont->saved_thread.stack); - FREE_UNLESS_NULL(cont->machine_stack); + RUBY_FREE_UNLESS_NULL(cont->saved_thread.stack); + RUBY_FREE_UNLESS_NULL(cont->machine_stack); #ifdef __ia64 - FREE_UNLESS_NULL(cont->machine_register_stack); + RUBY_FREE_UNLESS_NULL(cont->machine_register_stack); #endif - FREE_UNLESS_NULL(cont->vm_stack); + RUBY_FREE_UNLESS_NULL(cont->vm_stack); ruby_xfree(ptr); } - FREE_REPORT_LEAVE("cont"); + RUBY_FREE_LEAVE("cont"); } static void @@ -144,8 +144,8 @@ cont_new(VALUE klass) contval = Data_Make_Struct(klass, rb_context_t, cont_mark, cont_free, cont); - GC_INFO("cont alloc: %p (klass: %s)\n", cont, - klass == rb_cFiber ? "Fiber": "Continuation"); + RUBY_GC_INFO("cont alloc: %p (klass: %s)\n", cont, + klass == rb_cFiber ? "Fiber": "Continuation"); cont->self = contval; cont->alive = Qtrue; -- cgit v1.2.3