New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A Metaconfig probe for malloc_usable_size #17066
Comments
From rich+perl@hyphen-dash-hyphen.infoHi, As mentioned on IRC, malloc_usable_size Should a probe for malloc_usable_size should have its own file or be xenu pointed out that it would be useful to capture the minimum Best Regards, |
From rich+perl@hyphen-dash-hyphen.info0001-New-check-for-malloc_usable_size.patchFrom 906636b8242ef18a4f41befe1bec3be59a7d8ac4 Mon Sep 17 00:00:00 2001
From: Richard Leach <rich+perl@hyphen-dash-hyphen.info>
Date: Tue, 25 Jun 2019 22:08:12 +0100
Subject: [PATCH] New check for malloc_usable_size
---
U/perl/d_malloc_useable_size.U | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 U/perl/d_malloc_useable_size.U
diff --git a/U/perl/d_malloc_useable_size.U b/U/perl/d_malloc_useable_size.U
new file mode 100644
index 0000000..bdd9dd6
--- /dev/null
+++ b/U/perl/d_malloc_useable_size.U
@@ -0,0 +1,26 @@
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 2019, Richard Leach
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS:
+?MAKE:d_malloc_usable_size: Inlibc
+?MAKE: -pick add $@ %<
+?S:d_malloc_usable_size:
+?S: This symbol, if defined, indicates that the malloc_usable_size
+?S: routine is available for use.
+?S:.
+?C:HAS_MALLOC_USABLE_SIZE:
+?C: This symbol, if defined, indicates that the malloc_usable_size
+?C: routine is available for use.
+?C:.
+?H:#$d_malloc_usable_size HAS_MALLOC_USABLE_SIZE /**/
+?H:.
+?LINT:set d_malloc_usable_size
+: see if malloc_usable_size exists
+set malloc_usable_size d_malloc_usable_size
+eval $inlibc
--
2.17.0.windows.1
|
From rich+perl@hyphen-dash-hyphen.info0001-Add-check-for-malloc_usable_size.patchFrom 14605a33d8c588654bd0b904016f7ab68050abcf Mon Sep 17 00:00:00 2001
From: Richard Leach <rich+perl@hyphen-dash-hyphen.info>
Date: Tue, 25 Jun 2019 22:14:51 +0100
Subject: [PATCH] Add check for malloc_usable_size
---
U/perl/d_malloc_size.U | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/U/perl/d_malloc_size.U b/U/perl/d_malloc_size.U
index 3d6e083..071426a 100644
--- a/U/perl/d_malloc_size.U
+++ b/U/perl/d_malloc_size.U
@@ -8,7 +8,7 @@
?RCS: that same Artistic License; a copy of which may be found at the root
?RCS: of the source tree for dist 3.0.
?RCS:
-?MAKE:d_malloc_size d_malloc_good_size: Inlibc
+?MAKE:d_malloc_size d_malloc_good_size d_malloc_usable_size: Inlibc
?MAKE: -pick add $@ %<
?S:d_malloc_size:
?S: This symbol, if defined, indicates that the malloc_size
@@ -18,6 +18,10 @@
?S: This symbol, if defined, indicates that the malloc_good_size
?S: routine is available for use.
?S:.
+?S:d_malloc_usable_size:
+?S: This symbol, if defined, indicates that the malloc_usable_size
+?S: routine is available for use.
+?S:.
?C:HAS_MALLOC_SIZE:
?C: This symbol, if defined, indicates that the malloc_size
?C: routine is available for use.
@@ -30,8 +34,15 @@
?C:.
?H:#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/
?H:.
+?C:HAS_MALLOC_USABLE_SIZE:
+?C: This symbol, if defined, indicates that the malloc_usable_size
+?C: routine is available for use.
+?C:.
+?H:#$d_malloc_usable_size HAS_MALLOC_USABLE_SIZE /**/
+?H:.
?LINT:set d_malloc_size
?LINT:set d_malloc_good_size
+?LINT:set d_malloc_usable_size
: see if malloc_size exists
set malloc_size d_malloc_size
eval $inlibc
@@ -40,3 +51,6 @@ eval $inlibc
set malloc_good_size d_malloc_good_size
eval $inlibc
+: see if malloc_usable_size exists
+set malloc_usable_size d_malloc_usable_size
+eval $inlibc
--
2.17.0.windows.1
|
From @tonycozOn Sun, 30 Jun 2019 01:17:03 -0700, rich+perl@hyphen-dash-hyphen.info wrote:
This was applied to metaconfig in 57477b4: and in perl in blead as e62a081. Thanks, |
The RT System itself - Status changed from 'new' to 'open' |
@tonycoz - Status changed from 'open' to 'pending release' |
Migrated from rt.perl.org#134237 (status was 'pending release')
Searchable as RT134237$
The text was updated successfully, but these errors were encountered: