diff options
author | Jason Evans <jasone@canonware.com> | 2016-02-21 19:25:02 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2016-02-22 05:39:05 (GMT) |
commit | 9bad07903962962de9f656d281b9b1e7e9501c87 (patch) | |
tree | 1468055ff093f7a7d341e739f2b6df4f097f868c /src/jemalloc.c | |
parent | 788d29d397574396c4c93bf1f90da59dd7efc5cc (diff) | |
download | jemalloc-9bad07903962962de9f656d281b9b1e7e9501c87.zip jemalloc-9bad07903962962de9f656d281b9b1e7e9501c87.tar.gz jemalloc-9bad07903962962de9f656d281b9b1e7e9501c87.tar.bz2 |
Refactor time_* into nstime_*.
Use a single uint64_t in nstime_t to store nanoseconds rather than using
struct timespec. This reduces fragility around conversions between long
and uint64_t, especially missing casts that only cause problems on
32-bit platforms.
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r-- | src/jemalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index f69d951..76b4f15 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -1151,7 +1151,7 @@ malloc_conf_init(void) CONF_HANDLE_SSIZE_T(opt_lg_dirty_mult, "lg_dirty_mult", -1, (sizeof(size_t) << 3) - 1) CONF_HANDLE_SSIZE_T(opt_decay_time, "decay_time", -1, - TIME_SEC_MAX); + NSTIME_SEC_MAX); CONF_HANDLE_BOOL(opt_stats_print, "stats_print", true) if (config_fill) { if (CONF_MATCH("junk")) { |