https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112013-10-09T07:04:20ZRuby Issue Tracking SystemRuby master - Bug #8984: ObjectSpace.memsize_of(obj) should return with sizeof(RVALUE)https://redmine.ruby-lang.org/issues/8984?journal_id=423492013-10-09T07:04:20Zsam.saffron (Sam Saffron)sam.saffron@gmail.com
<ul></ul><p>Personally I have only ever seen mention of this in <a href="http://stackoverflow.com/questions/10068018/memory-size-of-a-hash-or-other-object" class="external">http://stackoverflow.com/questions/10068018/memory-size-of-a-hash-or-other-object</a></p>
<p>I googled pretty hard and all I saw was wonderful pictures of tenderlove and a slightly less accurate description here: <a href="http://www.slideshare.net/tenderlove/hidden-gems-of-ruby-19" class="external">http://www.slideshare.net/tenderlove/hidden-gems-of-ruby-19</a> <a href="http://imgur.com/yeFYtiM" class="external">http://imgur.com/yeFYtiM</a></p>
<p>I think we should break compatibility here and properly document, cause people just have no idea about this now</p> Ruby master - Bug #8984: ObjectSpace.memsize_of(obj) should return with sizeof(RVALUE)https://redmine.ruby-lang.org/issues/8984?journal_id=448052014-01-30T06:17:21Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Target version</strong> changed from <i>2.1.0</i> to <i>2.2.0</i></li></ul> Ruby master - Bug #8984: ObjectSpace.memsize_of(obj) should return with sizeof(RVALUE)https://redmine.ruby-lang.org/issues/8984?journal_id=504052014-12-15T08:54:25Zko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset r48846.</p>
<hr>
<ul>
<li>ext/objspace/objspace.c: ObjectSpace.memsize_of(obj) returns<br>
with sizeof(RVALUE). [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: ObjectSpace.memsize_of(obj) should return with sizeof(RVALUE) (Closed)" href="https://redmine.ruby-lang.org/issues/8984">#8984</a>]</li>
<li>gc.c (obj_memsize_of): ditto.</li>
<li>NEWS: add a NEWS entry.</li>
<li>test/objspace/test_objspace.rb: catch up this fix.</li>
<li>test/ruby/test_file_exhaustive.rb: ditto.</li>
</ul> Ruby master - Bug #8984: ObjectSpace.memsize_of(obj) should return with sizeof(RVALUE)https://redmine.ruby-lang.org/issues/8984?journal_id=511142015-01-20T02:44:14Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>1.9.3: UNKNOWN, 2.0.0: UNKNOWN</i> to <i>2.0.0: WONTFIX, 2.1: UNKNOWN</i></li></ul>