summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2013-12-19 07:21:42 (GMT)
committerJason Evans <je@fb.com>2013-12-20 05:40:13 (GMT)
commitde73296d6b56abe70b08654342e136c2612d1dbd (patch)
tree8b0981a89891096e36319310fe2f2fe6391ab330 /doc
parent1393d79a4c50fd5302a6844a5795de8c8ce83c16 (diff)
downloadjemalloc-de73296d6b56abe70b08654342e136c2612d1dbd.zip
jemalloc-de73296d6b56abe70b08654342e136c2612d1dbd.tar.gz
jemalloc-de73296d6b56abe70b08654342e136c2612d1dbd.tar.bz2
Add mallctl*() unit tests.
Diffstat (limited to 'doc')
-rw-r--r--doc/jemalloc.xml.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in
index 9fb1b76..2740c82 100644
--- a/doc/jemalloc.xml.in
+++ b/doc/jemalloc.xml.in
@@ -394,15 +394,14 @@
it is legitimate to construct code like the following: <programlisting
language="C"><![CDATA[
unsigned nbins, i;
-
-int mib[4];
+size_t mib[4];
size_t len, miblen;
len = sizeof(nbins);
mallctl("arenas.nbins", &nbins, &len, NULL, 0);
miblen = 4;
-mallnametomib("arenas.bin.0.size", mib, &miblen);
+mallctlnametomib("arenas.bin.0.size", mib, &miblen);
for (i = 0; i < nbins; i++) {
size_t bin_size;