summaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal/jemalloc_internal_decls.h
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-05-17 17:47:00 (GMT)
committerJason Evans <jasone@canonware.com>2017-05-18 18:33:45 (GMT)
commit6e62c6286258e340308b4a989b4bd80232fed8e1 (patch)
tree026d8035d9506006cc2c41ce1679bab02d364827 /include/jemalloc/internal/jemalloc_internal_decls.h
parentbaf3e294e05ab62b0f80b825a76687c8a1ea001e (diff)
downloadjemalloc-6e62c6286258e340308b4a989b4bd80232fed8e1.zip
jemalloc-6e62c6286258e340308b4a989b4bd80232fed8e1.tar.gz
jemalloc-6e62c6286258e340308b4a989b4bd80232fed8e1.tar.bz2
Refactor *decay_time into *decay_ms.
Support millisecond resolution for decay times. Among other use cases this makes it possible to specify a short initial dirty-->muzzy decay phase, followed by a longer muzzy-->clean decay phase. This resolves #812.
Diffstat (limited to 'include/jemalloc/internal/jemalloc_internal_decls.h')
-rw-r--r--include/jemalloc/internal/jemalloc_internal_decls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_decls.h b/include/jemalloc/internal/jemalloc_internal_decls.h
index d75de0b..1efdb56 100644
--- a/include/jemalloc/internal/jemalloc_internal_decls.h
+++ b/include/jemalloc/internal/jemalloc_internal_decls.h
@@ -41,6 +41,9 @@
#ifndef SIZE_T_MAX
# define SIZE_T_MAX SIZE_MAX
#endif
+#ifndef SSIZE_MAX
+# define SSIZE_MAX ((ssize_t)(SIZE_T_MAX >> 1))
+#endif
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>