Oct. 26, 2017
8:09 a.m.
On 26 Oct 2017, at 10:05, Denis Kudriashov <dionisiydk@gmail.com> wrote:
Hi.
Question from discord, why:
2017 sizeInMemory = 0
?
Looks like a bug, but maybe there is some reason for this.
#sizeInMemory only takes into account object header size and the size of the object itself. A small-integer is encoded in the pointer, so it has no size in itself, only the object pointing to it needs space for the pointer, just like for normal object. Marcus