[ruby-cvs:72074] nobu:r64974 (trunk): ext/objspace/objspace_dump.c: print addresses consistently

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Oct 9 12:21:57 JST 2018


nobu	2018-10-09 12:21:57 +0900 (Tue, 09 Oct 2018)

  New Revision: 64974

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

  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 `"%#"PRIxVALUE` to format `VALUE`.
    
    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