[ruby-cvs:72062] tenderlove:r64970 (trunk): ext/objspace/objspace_dump.c: print addresses consistently

tenderlove at ruby-lang.org tenderlove at ruby-lang.org
Tue Oct 9 08:43:46 JST 2018


tenderlove	2018-10-09 08:43:45 +0900 (Tue, 09 Oct 2018)

  New Revision: 64970

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64970

  Log:
    ext/objspace/objspace_dump.c: print addresses consistently
    
    The format addresses are printed in are different if you use
    `ObjectSpace.dump_all(output: :stdout)` vs.
    `ObjectSpace.dump_all(output: :string)` (or `ObjectSpace.dump`) due to
    differences in the underlying `vfprintf` implementation.
    
    Use %"PRIxPTR" instead to be consistent across both.
    
    Co-authored-by: Ashe Connor <ashe at kivikakk.ee>

  Modified files:
    trunk/ext/objspace/objspace_dump.c
    trunk/test/objspace/test_objspace.rb


More information about the ruby-cvs mailing list