ruby-changes:33468
From: nobu <ko1@a...>
Date: Thu, 10 Apr 2014 12:40:37 +0900 (JST)
Subject: [ruby-changes:33468] nobu:r45547 (trunk): gc.c: do nothing unless USE_RGENGC
nobu 2014-04-10 12:40:32 +0900 (Thu, 10 Apr 2014) New Revision: 45547 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45547 Log: gc.c: do nothing unless USE_RGENGC * gc.c (gc_verify_internal_consistency): always do nothing unless USE_RGENGC is set, no local variable needed. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 45546) +++ gc.c (revision 45547) @@ -4252,21 +4252,21 @@ verify_internal_consistency_i(void *page https://github.com/ruby/ruby/blob/trunk/gc.c#L4252 static VALUE gc_verify_internal_consistency(VALUE self) { +#if USE_RGENGC struct verify_internal_consistency_struct data; data.objspace = &rb_objspace; data.err_count = 0; -#if USE_RGENGC { struct each_obj_args eo_args; eo_args.callback = verify_internal_consistency_i; eo_args.data = (void *)&data; objspace_each_objects((VALUE)&eo_args); } -#endif if (data.err_count != 0) { rb_bug("gc_verify_internal_consistency: found internal consistency.\n"); } +#endif return Qnil; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/