aboutsummaryrefslogtreecommitdiffstats
path: root/src/prof.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-05-27 18:57:15 -0700
committerJason Evans <jasone@canonware.com>2016-06-03 12:27:41 -0700
commitb46261d58b449cc4c099ed2384451a2499688f0e (patch)
tree77c8ee012fca1987b28dbf631efff5a4c7a0f212 /src/prof.c
parent4731cd47f7168e70809d83c8569f501891ecffa1 (diff)
downloadplatform_external_jemalloc_new-b46261d58b449cc4c099ed2384451a2499688f0e.tar.gz
platform_external_jemalloc_new-b46261d58b449cc4c099ed2384451a2499688f0e.tar.bz2
platform_external_jemalloc_new-b46261d58b449cc4c099ed2384451a2499688f0e.zip
Implement cache-oblivious support for huge size classes.
Diffstat (limited to 'src/prof.c')
-rw-r--r--src/prof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prof.c b/src/prof.c
index 03979ca3..5eb9a3d1 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -879,7 +879,7 @@ prof_sample_threshold_update(prof_tdata_t *tdata)
* pp 500
* (http://luc.devroye.org/rnbookindex.html)
*/
- r = prng_lg_range(&tdata->prng_state, 53);
+ r = prng_lg_range(&tdata->prng_state, 53, false);
u = (double)r * (1.0/9007199254740992.0L);
tdata->bytes_until_sample = (uint64_t)(log(u) /
log(1.0 - (1.0 / (double)((uint64_t)1U << lg_prof_sample))))