summaryrefslogtreecommitdiffstats
path: root/jemalloc/src
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2010-10-03 07:10:15 (GMT)
committerJason Evans <jasone@canonware.com>2010-10-03 07:22:46 (GMT)
commitc6e950665c0566934b8b058ea11fc44cdcfee3ce (patch)
treef5e86ef1668e9899ddceabff0abf9c32d5f2b1b0 /jemalloc/src
parent9ce3bfd92d36d52d68ec6dd97e521a4c1fa2714f (diff)
downloadjemalloc-c6e950665c0566934b8b058ea11fc44cdcfee3ce.zip
jemalloc-c6e950665c0566934b8b058ea11fc44cdcfee3ce.tar.gz
jemalloc-c6e950665c0566934b8b058ea11fc44cdcfee3ce.tar.bz2
Increase PRN 'a' and 'c' constants.
Increase PRN 'a' and 'c' constants, so that high bits tend to cascade more.
Diffstat (limited to 'jemalloc/src')
-rw-r--r--jemalloc/src/prof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jemalloc/src/prof.c b/jemalloc/src/prof.c
index 783a83d..e715da9 100644
--- a/jemalloc/src/prof.c
+++ b/jemalloc/src/prof.c
@@ -644,7 +644,7 @@ prof_sample_threshold_update(void)
*/
PROF_SAMPLE_STATE_GET(prof_sample_state);
prn64(r, 53, prof_sample_state->prn_state,
- (uint64_t)1125899906842625LLU, 1058392653243283975);
+ (uint64_t)6364136223846793005LLU, (uint64_t)1442695040888963407LLU);
u = (double)r * (1.0/9007199254740992.0L);
prof_sample_state->threshold = (uint64_t)(log(u) /
log(1.0 - (1.0 / (double)((uint64_t)1U << opt_lg_prof_sample))))