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

[perl #134237] A Metaconfig probe for malloc_usable_size

From:
Tony Cook via RT
Date:
September 19, 2019 04:13
Subject:
[perl #134237] A Metaconfig probe for malloc_usable_size
Message ID:
rt-4.0.24-24361-1568866420-273.134237-15-0@perl.org
On Sun, 30 Jun 2019 01:17:03 -0700, rich+perl@hyphen-dash-hyphen.info wrote:
> Hi,
> 
> As mentioned on IRC, malloc_usable_size
> (http://man7.org/linux/man-pages/man3/malloc_usable_size.3.html) 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
> https://perl5.git.perl.org/metaconfig.git/commit/83994881900edacd8c4e4d6534b1545554bb8274
> 
> 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?

This was applied to metaconfig in 57477b42de912c3480c17bf3f43615a2cb7b6fc6:

https://github.com/perl5-metaconfig/metaconfig/commit/57477b42de912c3480c17bf3f43615a2cb7b6fc6

and in perl in blead as e62a0811bc2b623845ce4994e77bb5f224466c7e.

Thanks,
Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=134237



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About