[ruby-cvs:51250] tmm1:r44105 (trunk): objspace_dump.c: include object's gc flags in dump

tmm1 at ruby-lang.org tmm1 at ruby-lang.org
Tue Dec 10 11:26:11 JST 2013


tmm1	2013-12-10 11:26:09 +0900 (Tue, 10 Dec 2013)

  New Revision: 44105

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44105

  Log:
    objspace_dump.c: include object's gc flags in dump
    
    * ext/objspace/objspace_dump.c (dump_object): include fstring flag on
      strings. include gc flags (old, remembered, wb_protected) on all objects.
    * ext/objspace/objspace_dump.c (Init_objspace_dump): initialize lazy
      IDs before first use.
    * gc.c (rb_obj_gc_flags): new function to retrieve object flags
    * internal.h (RB_OBJ_GC_FLAGS_MAX): maximum flags allowed for one obj
    * test/objspace/test_objspace.rb (test_dump_flags): test for above
    * test/objspace/test_objspace.rb (test_trace_object_allocations):
      resolve name before dump (for rb_class_path_cached)

  Modified files:
    trunk/ChangeLog
    trunk/ext/objspace/objspace_dump.c
    trunk/gc.c
    trunk/internal.h
    trunk/test/objspace/test_objspace.rb


More information about the ruby-cvs mailing list