summaryrefslogtreecommitdiffstats
path: root/jemalloc/test
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2010-10-24 01:37:06 (GMT)
committerJason Evans <jasone@canonware.com>2010-10-24 01:37:06 (GMT)
commite73397062ac3ab28a9d377591b63ed19fd154cca (patch)
treed78dbc832be4e8c8b504017bc15f0256f91e033d /jemalloc/test
parente4f7846f1fd279a039ffa2a41707348187219de4 (diff)
downloadjemalloc-e73397062ac3ab28a9d377591b63ed19fd154cca.zip
jemalloc-e73397062ac3ab28a9d377591b63ed19fd154cca.tar.gz
jemalloc-e73397062ac3ab28a9d377591b63ed19fd154cca.tar.bz2
Replace JEMALLOC_OPTIONS with MALLOC_CONF.
Replace the single-character run-time flags with key/value pairs, which can be set via the malloc_conf global, /etc/malloc.conf, and the MALLOC_CONF environment variable. Replace the JEMALLOC_PROF_PREFIX environment variable with the "opt.prof_prefix" option. Replace umax2s() with u2s().
Diffstat (limited to 'jemalloc/test')
-rw-r--r--jemalloc/test/rallocm.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/jemalloc/test/rallocm.c b/jemalloc/test/rallocm.c
index 7e8a271..a8cadeb 100644
--- a/jemalloc/test/rallocm.c
+++ b/jemalloc/test/rallocm.c
@@ -14,14 +14,14 @@ main(void)
fprintf(stderr, "Test begin\n");
- r = allocm(&p, &sz, 42, 0);
+ r = JEMALLOC_P(allocm)(&p, &sz, 42, 0);
if (r != ALLOCM_SUCCESS) {
fprintf(stderr, "Unexpected allocm() error\n");
abort();
}
q = p;
- r = rallocm(&q, &tsz, sz, 0, ALLOCM_NO_MOVE);
+ r = JEMALLOC_P(rallocm)(&q, &tsz, sz, 0, ALLOCM_NO_MOVE);
if (r != ALLOCM_SUCCESS)
fprintf(stderr, "Unexpected rallocm() error\n");
if (q != p)
@@ -32,7 +32,7 @@ main(void)
}
q = p;
- r = rallocm(&q, &tsz, sz, 5, ALLOCM_NO_MOVE);
+ r = JEMALLOC_P(rallocm)(&q, &tsz, sz, 5, ALLOCM_NO_MOVE);
if (r != ALLOCM_SUCCESS)
fprintf(stderr, "Unexpected rallocm() error\n");
if (q != p)
@@ -43,7 +43,7 @@ main(void)
}
q = p;
- r = rallocm(&q, &tsz, sz + 5, 0, ALLOCM_NO_MOVE);
+ r = JEMALLOC_P(rallocm)(&q, &tsz, sz + 5, 0, ALLOCM_NO_MOVE);
if (r != ALLOCM_ERR_NOT_MOVED)
fprintf(stderr, "Unexpected rallocm() result\n");
if (q != p)
@@ -54,7 +54,7 @@ main(void)
}
q = p;
- r = rallocm(&q, &tsz, sz + 5, 0, 0);
+ r = JEMALLOC_P(rallocm)(&q, &tsz, sz + 5, 0, 0);
if (r != ALLOCM_SUCCESS)
fprintf(stderr, "Unexpected rallocm() error\n");
if (q == p)
@@ -66,7 +66,7 @@ main(void)
p = q;
sz = tsz;
- r = rallocm(&q, &tsz, 8192, 0, 0);
+ r = JEMALLOC_P(rallocm)(&q, &tsz, 8192, 0, 0);
if (r != ALLOCM_SUCCESS)
fprintf(stderr, "Unexpected rallocm() error\n");
if (q == p)
@@ -78,7 +78,7 @@ main(void)
p = q;
sz = tsz;
- r = rallocm(&q, &tsz, 16384, 0, 0);
+ r = JEMALLOC_P(rallocm)(&q, &tsz, 16384, 0, 0);
if (r != ALLOCM_SUCCESS)
fprintf(stderr, "Unexpected rallocm() error\n");
if (tsz == sz) {
@@ -88,7 +88,7 @@ main(void)
p = q;
sz = tsz;
- r = rallocm(&q, &tsz, 8192, 0, ALLOCM_NO_MOVE);
+ r = JEMALLOC_P(rallocm)(&q, &tsz, 8192, 0, ALLOCM_NO_MOVE);
if (r != ALLOCM_SUCCESS)
fprintf(stderr, "Unexpected rallocm() error\n");
if (q != p)
@@ -99,7 +99,7 @@ main(void)
}
sz = tsz;
- r = rallocm(&q, &tsz, 16384, 0, ALLOCM_NO_MOVE);
+ r = JEMALLOC_P(rallocm)(&q, &tsz, 16384, 0, ALLOCM_NO_MOVE);
if (r != ALLOCM_SUCCESS)
fprintf(stderr, "Unexpected rallocm() error\n");
if (q != p)
@@ -110,7 +110,7 @@ main(void)
}
sz = tsz;
- dallocm(p, 0);
+ JEMALLOC_P(dallocm)(p, 0);
fprintf(stderr, "Test end\n");
return (0);