diff options
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2279,7 +2279,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj) } #endif if (/* RHASH_AR_TABLE_P(obj) */ !FL_TEST_RAW(obj, RHASH_ST_TABLE_FLAG)) { - ar_table *tab = RHASH(obj)->as.ar; + struct ar_table_struct *tab = RHASH(obj)->as.ar; if (tab) { if (RHASH_TRANSIENT_P(obj)) { @@ -3356,7 +3356,8 @@ obj_memsize_of(VALUE obj, int use_all_types) break; case T_HASH: if (RHASH_AR_TABLE_P(obj)) { - size += sizeof(ar_table); + size_t rb_hash_ar_table_size(); + size += rb_hash_ar_table_size(); } else { VM_ASSERT(RHASH_ST_TABLE(obj) != NULL); |