diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-25 02:44:20 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-25 02:44:20 +0000 |
commit | 4bdb5ced9a06532d33e6aa0dd6be49e863b31d22 (patch) | |
tree | e45cc5127c0734b78ea979be8a572f9123dca8e1 /cont.c | |
parent | ace2b68ac4215b46f5de94bad68f3fef91df4245 (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.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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; |