Question

I need to port a large cross platform code which consists of the malloc_usable_size(). But, Seems like it was deprecated (read this thread and this).

Seems like I'm not the first one that needs it (1 & 2), but still no answer.

What alternative can be used to replace that method?

Thank you!

Était-ce utile?

La solution

There should be dlmalloc_usable_size function in the NDK. But generally somebody inside google decided that malloc_usable_size is not needed anymore and removed it from the standard linux api, so I'm not sure how it would be in the never NDK versions. Maybe dlmalloc_usable_size will be also removed.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top