Project

General

Profile

Actions

Feature #10238

open

todo: remove dependency on malloc_usable_size

Added by normalperson (Eric Wong) about 10 years ago. Updated 8 months ago.

Status:
Assigned
Target version:
-
[ruby-core:65024]

Description

malloc_usable_size shows up at or near the top of many profiles for me.

We should be able to use ruby_sized_xfree in more places; especially
if rb_data_type_t->dsize is defined.

One possible improvement is to allow the rb_data_type_t->dsize pointer
to be a FIXNUM, removing the need for some memsize functions.

Furthermore, over-accounting malloc-ed bytes (presumably the reason
malloc_usable_size was introduced). should be less harmful nowadays with
incremental marking.


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0