[ruby-core:65306] Re: [ruby-trunk - Feature #10238] todo: remove dependency on malloc_usable_size

From: Eric Wong <normalperson@...>
Date: 2014-09-28 04:18:26 UTC
List: ruby-core #65306
nobu@ruby-lang.org wrote:
> If it's a `Fixnum`, the size should be 0 for NULL `ptr`.

I was under the impression DATA_PTR is not NULL in nearly all cases,
but I did not check closely for all those classes.

But this patch may not be possible anyways since some platforms may have
non-word-aligned functions :<

> `enc_memsize` seems unnecessary anyway, indeed.

I'm a little curious about that, actually; but haven't gotten around
to investigating.

In This Thread

Prev Next