diff options
author | Jason Evans <jasone@canonware.com> | 2016-10-29 22:55:08 -0700 |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2016-10-29 22:59:42 -0700 |
commit | 1d57c03e331ec9763ba55476a53aa1716f1bc8e1 (patch) | |
tree | acadc4c4b378806e4d7d65863de09c220e6a5a91 /include | |
parent | c443b67561891ae68d688daf5f8ce37820cdba2b (diff) | |
download | jemalloc-1d57c03e331ec9763ba55476a53aa1716f1bc8e1.tar.gz |
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')
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal_defs.h.in | 4 |
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 d10c8a4..6824ab7 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. |