[ruby-cvs:65504] rhe:r58332 (trunk): array.c: report correct memsize for shared root arrays

rhe at ruby-lang.org rhe at ruby-lang.org
Thu Apr 13 15:43:17 JST 2017


rhe	2017-04-13 15:43:17 +0900 (Thu, 13 Apr 2017)

  New Revision: 58332

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

  Log:
    array.c: report correct memsize for shared root arrays
    
    For a shared array root, struct RArray::as.heap.aux.capa stores the
    number of Arrays holding reference to that T_ARRAY instead of the actual
    heap-allocated capacity. Use ARY_CAPA() macro which handles this
    appropriately.

  Modified files:
    trunk/array.c


More information about the ruby-cvs mailing list