summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-25 02:44:20 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-25 02:44:20 +0000
commit4bdb5ced9a06532d33e6aa0dd6be49e863b31d22 (patch)
treee45cc5127c0734b78ea979be8a572f9123dca8e1 /cont.c
parentace2b68ac4215b46f5de94bad68f3fef91df4245 (diff)
* 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
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c20
1 files changed, 10 insertions, 10 deletions
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;