Fix minor malloc regressions.
- Use _Bool rather than bool to resolve missing type errors in malloc_np.h. - Fix malloc manual page #include documentation. - Add *allocm manual pages to obsolete files. Submitted by: jbeich
This commit is contained in:
parent
8823d24b48
commit
c13244b92e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286911
@ -38,6 +38,12 @@
|
|||||||
# xargs -n1 | sort | uniq -d;
|
# xargs -n1 | sort | uniq -d;
|
||||||
# done
|
# done
|
||||||
|
|
||||||
|
# 20150818: *allocm() are gone in jemalloc 4.0.0
|
||||||
|
OLD_FILES+=usr/share/man/man3/allocm.3.gz
|
||||||
|
OLD_FILES+=usr/share/man/man3/dallocm.3.gz
|
||||||
|
OLD_FILES+=usr/share/man/man3/nallocm.3.gz
|
||||||
|
OLD_FILES+=usr/share/man/man3/rallocm.3.gz
|
||||||
|
OLD_FILES+=usr/share/man/man3/sallocm.3.gz
|
||||||
# 20150802: Remove netbsd's test on pw(8)
|
# 20150802: Remove netbsd's test on pw(8)
|
||||||
OLD_FILES+=usr/tests/usr.sbin/pw/pw_test
|
OLD_FILES+=usr/tests/usr.sbin/pw/pw_test
|
||||||
# 20150719: Remove libarchive.pc
|
# 20150719: Remove libarchive.pc
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in
|
diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in
|
||||||
index 8fc774b..47b453c 100644
|
index 8fc774b..fdbef95 100644
|
||||||
--- a/doc/jemalloc.xml.in
|
--- a/doc/jemalloc.xml.in
|
||||||
+++ b/doc/jemalloc.xml.in
|
+++ b/doc/jemalloc.xml.in
|
||||||
@@ -53,6 +53,17 @@
|
@@ -53,11 +53,23 @@
|
||||||
<para>This manual describes jemalloc @jemalloc_version@. More information
|
<para>This manual describes jemalloc @jemalloc_version@. More information
|
||||||
can be found at the <ulink
|
can be found at the <ulink
|
||||||
url="http://www.canonware.com/jemalloc/">jemalloc website</ulink>.</para>
|
url="http://www.canonware.com/jemalloc/">jemalloc website</ulink>.</para>
|
||||||
@ -20,7 +20,14 @@ index 8fc774b..47b453c 100644
|
|||||||
</refsect1>
|
</refsect1>
|
||||||
<refsynopsisdiv>
|
<refsynopsisdiv>
|
||||||
<title>SYNOPSIS</title>
|
<title>SYNOPSIS</title>
|
||||||
@@ -2759,4 +2770,18 @@ malloc_conf = "lg_chunk:24";]]></programlisting></para>
|
<funcsynopsis>
|
||||||
|
- <funcsynopsisinfo>#include <<filename class="headerfile">jemalloc/jemalloc.h</filename>></funcsynopsisinfo>
|
||||||
|
+ <funcsynopsisinfo>#include <<filename class="headerfile">stdlib.h</filename>>
|
||||||
|
+#include <<filename class="headerfile">malloc_np.h</filename>></funcsynopsisinfo>
|
||||||
|
<refsect2>
|
||||||
|
<title>Standard API</title>
|
||||||
|
<funcprototype>
|
||||||
|
@@ -2759,4 +2771,18 @@ malloc_conf = "lg_chunk:24";]]></programlisting></para>
|
||||||
<para>The <function>posix_memalign<parameter/></function> function conforms
|
<para>The <function>posix_memalign<parameter/></function> function conforms
|
||||||
to IEEE Std 1003.1-2001 (“POSIX.1”).</para>
|
to IEEE Std 1003.1-2001 (“POSIX.1”).</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
@ -72,9 +72,9 @@ do_extract() {
|
|||||||
patch -p1 < "${src}/FREEBSD-diffs"
|
patch -p1 < "${src}/FREEBSD-diffs"
|
||||||
find . -name '*.orig' -delete
|
find . -name '*.orig' -delete
|
||||||
# Generate various files.
|
# Generate various files.
|
||||||
./autogen.sh --enable-cc-silence --enable-dss --enable-xmalloc \
|
./autogen.sh --enable-cc-silence --enable-xmalloc --enable-utrace \
|
||||||
--enable-utrace --with-xslroot=/usr/local/share/xsl/docbook \
|
--with-xslroot=/usr/local/share/xsl/docbook --with-private-namespace=__ \
|
||||||
--with-private-namespace=__ --with-lg-page-sizes=12,13,14,16
|
--with-lg-page-sizes=12,13,14,16
|
||||||
gmake dist
|
gmake dist
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
.\" Title: JEMALLOC
|
.\" Title: JEMALLOC
|
||||||
.\" Author: Jason Evans
|
.\" Author: Jason Evans
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
||||||
.\" Date: 08/17/2015
|
.\" Date: 08/18/2015
|
||||||
.\" Manual: User Manual
|
.\" Manual: User Manual
|
||||||
.\" Source: jemalloc 4.0.0-0-g6e98caf8f064482b9ab292ef3638dea67420bbc2
|
.\" Source: jemalloc 4.0.0-0-g6e98caf8f064482b9ab292ef3638dea67420bbc2
|
||||||
.\" Language: English
|
.\" Language: English
|
||||||
.\"
|
.\"
|
||||||
.TH "JEMALLOC" "3" "08/17/2015" "jemalloc 4.0.0-0-g6e98caf8f064" "User Manual"
|
.TH "JEMALLOC" "3" "08/18/2015" "jemalloc 4.0.0-0-g6e98caf8f064" "User Manual"
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
.\" * Define some portability stuff
|
.\" * Define some portability stuff
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
@ -51,7 +51,8 @@ make variable)\&.
|
|||||||
.sp
|
.sp
|
||||||
.ft B
|
.ft B
|
||||||
.nf
|
.nf
|
||||||
#include <jemalloc/jemalloc\&.h>
|
#include <stdlib\&.h>
|
||||||
|
#include <malloc_np\&.h>
|
||||||
.fi
|
.fi
|
||||||
.ft
|
.ft
|
||||||
.SS "Standard API"
|
.SS "Standard API"
|
||||||
|
@ -36,13 +36,14 @@
|
|||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
typedef void *(chunk_alloc_t)(void *, size_t, size_t, bool *, bool *, unsigned);
|
typedef void *(chunk_alloc_t)(void *, size_t, size_t, _Bool *, _Bool *,
|
||||||
typedef bool (chunk_dalloc_t)(void *, size_t, bool, unsigned);
|
unsigned);
|
||||||
typedef bool (chunk_commit_t)(void *, size_t, size_t, size_t, unsigned);
|
typedef _Bool (chunk_dalloc_t)(void *, size_t, _Bool, unsigned);
|
||||||
typedef bool (chunk_decommit_t)(void *, size_t, size_t, size_t, unsigned);
|
typedef _Bool (chunk_commit_t)(void *, size_t, size_t, size_t, unsigned);
|
||||||
typedef bool (chunk_purge_t)(void *, size_t, size_t, size_t, unsigned);
|
typedef _Bool (chunk_decommit_t)(void *, size_t, size_t, size_t, unsigned);
|
||||||
typedef bool (chunk_split_t)(void *, size_t, size_t, size_t, bool, unsigned);
|
typedef _Bool (chunk_purge_t)(void *, size_t, size_t, size_t, unsigned);
|
||||||
typedef bool (chunk_merge_t)(void *, size_t, void *, size_t, bool, unsigned);
|
typedef _Bool (chunk_split_t)(void *, size_t, size_t, size_t, _Bool, unsigned);
|
||||||
|
typedef _Bool (chunk_merge_t)(void *, size_t, void *, size_t, _Bool, unsigned);
|
||||||
typedef struct {
|
typedef struct {
|
||||||
chunk_alloc_t *alloc;
|
chunk_alloc_t *alloc;
|
||||||
chunk_dalloc_t *dalloc;
|
chunk_dalloc_t *dalloc;
|
||||||
|
Loading…
Reference in New Issue
Block a user