ruby-changes:37945
From: ko1 <ko1@a...>
Date: Thu, 19 Mar 2015 16:20:01 +0900 (JST)
Subject: [ruby-changes:37945] ko1:r50026 (trunk): * gc.c, internal.h: export rb_gc_verify_internal_consistency().
ko1 2015-03-19 16:19:52 +0900 (Thu, 19 Mar 2015) New Revision: 50026 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50026 Log: * gc.c, internal.h: export rb_gc_verify_internal_consistency(). Modified files: trunk/ChangeLog trunk/gc.c trunk/internal.h Index: ChangeLog =================================================================== --- ChangeLog (revision 50025) +++ ChangeLog (revision 50026) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Mar 19 16:18:00 2015 Koichi Sasada <ko1@a...> + + * gc.c, internal.h: export rb_gc_verify_internal_consistency(). + Thu Mar 19 16:15:24 2015 Koichi Sasada <ko1@a...> * gc.c (obj_info): show allocation site if GC_DEBUG is not 0. Index: gc.c =================================================================== --- gc.c (revision 50025) +++ gc.c (revision 50026) @@ -4413,9 +4413,7 @@ gc_mark_stacked_objects(rb_objspace_t *o https://github.com/ruby/ruby/blob/trunk/gc.c#L4413 #endif } - if (RGENGC_CHECK_MODE >= 3) { - gc_verify_internal_consistency(Qnil); - } + if (RGENGC_CHECK_MODE >= 3) gc_verify_internal_consistency(Qnil); if (is_mark_stack_empty(mstack)) { shrink_stack_chunk_cache(mstack); @@ -4952,7 +4950,7 @@ gc_verify_heap_pages(rb_objspace_t *objs https://github.com/ruby/ruby/blob/trunk/gc.c#L4950 * if RGenGC is supported. */ static VALUE -gc_verify_internal_consistency(VALUE self) +gc_verify_internal_consistency(VALUE dummy) { rb_objspace_t *objspace = &rb_objspace; struct verify_internal_consistency_struct data = {0}; @@ -5029,6 +5027,12 @@ gc_verify_internal_consistency(VALUE sel https://github.com/ruby/ruby/blob/trunk/gc.c#L5027 return Qnil; } +void +rb_gc_verify_internal_consistency(void) +{ + gc_verify_internal_consistency(Qnil); +} + /* marks */ static void Index: internal.h =================================================================== --- internal.h (revision 50025) +++ internal.h (revision 50026) @@ -1291,6 +1291,8 @@ st_table *rb_st_copy(VALUE obj, struct s https://github.com/ruby/ruby/blob/trunk/internal.h#L1291 /* gc.c (export) */ size_t rb_obj_memsize_of(VALUE); +void rb_gc_verify_internal_consistency(void); + #define RB_OBJ_GC_FLAGS_MAX 5 size_t rb_obj_gc_flags(VALUE, ID[], size_t); void rb_gc_mark_values(long n, const VALUE *values); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/