develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134237] A Metaconfig probe for malloc_usable_size

June 30, 2019 08:17
[perl #134237] A Metaconfig probe for malloc_usable_size
Message ID:
# New Ticket Created by  Richard 
# Please include the string:  [perl #134237]
# in the subject line of all future correspondence about this issue. 
# <URL: >


As mentioned on IRC, malloc_usable_size
( seems
to be pretty common amongst Linux and BSD malloc implementations
nowadays. Metaconfig has a probe for the similar malloc_size on
Darwin, added in

Should a probe for malloc_usable_size should have its own file or be
appended to d_malloc_size.U due to the functional similarity?
Speculative patches are attached. (Once in, the intention is to add an
alternative definition to Perl_safesysmalloc_size.)

xenu pointed out that it would be useful to capture the minimum
allocation in a variable (e.g. MIN_MALLOC_SIZE). Where would be the
best place to do so?

Best Regards,
Richard Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About