summaryrefslogtreecommitdiffstats
path: root/include/jemalloc
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-10-30 05:55:08 (GMT)
committerJason Evans <jasone@canonware.com>2016-10-30 05:58:18 (GMT)
commit6c80321aed4b620acba4ced1a7a5871377cbc396 (patch)
tree839c503ea9778a5d254770ba2b525217128562b9 /include/jemalloc
parentd87037a62c651f96ac4fb5a8c9db668697ee96e0 (diff)
downloadjemalloc-6c80321aed4b620acba4ced1a7a5871377cbc396.zip
jemalloc-6c80321aed4b620acba4ced1a7a5871377cbc396.tar.gz
jemalloc-6c80321aed4b620acba4ced1a7a5871377cbc396.tar.bz2
Use CLOCK_MONOTONIC_COARSE rather than COARSE_MONOTONIC_RAW.
The raw clock variant is slow (even relative to plain CLOCK_MONOTONIC), whereas the coarse clock variant is faster than CLOCK_MONOTONIC, but still has resolution (~1ms) that is adequate for our purposes. This resolves #479.
Diffstat (limited to 'include/jemalloc')
-rw-r--r--include/jemalloc/internal/jemalloc_internal_defs.h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h.in b/include/jemalloc/internal/jemalloc_internal_defs.h.in
index 70b3287..0ba960b 100644
--- a/include/jemalloc/internal/jemalloc_internal_defs.h.in
+++ b/include/jemalloc/internal/jemalloc_internal_defs.h.in
@@ -77,9 +77,9 @@
#undef JEMALLOC_HAVE_ISSETUGID
/*
- * Defined if clock_gettime(CLOCK_MONOTONIC_RAW, ...) is available.
+ * Defined if clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is available.
*/
-#undef JEMALLOC_HAVE_CLOCK_MONOTONIC_RAW
+#undef JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE
/*
* Defined if clock_gettime(CLOCK_MONOTONIC, ...) is available.