History log of /external/jemalloc/include/jemalloc/internal/nstime.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
45a5bf677299eb152c3c47836bd5d946234ce40e 11-Oct-2016 Jason Evans <jasone@canonware.com> Do not advance decay epoch when time goes backwards.

Instead, move the epoch backward in time. Additionally, add
nstime_monotonic() and use it in debug builds to assert that time only
goes backward if nstime_update() is using a non-monotonic time source.
/external/jemalloc/include/jemalloc/internal/nstime.h
b732c395b7755622dd469fb27a463adcfd3b3152 07-Oct-2016 Jason Evans <jasone@canonware.com> Refine nstime_update().

Add missing #include <time.h>. The critical time facilities appear to
have been transitively included via unistd.h and sys/time.h, but in
principle this omission was capable of having caused
clock_gettime(CLOCK_MONOTONIC, ...) to have been overlooked in favor of
gettimeofday(), which in turn could cause spurious non-monotonic time
updates.

Refactor nstime_get() out of nstime_update() and add configure tests for
all variants.

Add CLOCK_MONOTONIC_RAW support (Linux-specific) and
mach_absolute_time() support (OS X-specific).

Do not fall back to clock_gettime(CLOCK_REALTIME, ...). This was a
fragile Linux-specific workaround, which we're unlikely to use at all
now that clock_gettime(CLOCK_MONOTONIC_RAW, ...) is supported, and if we
have no choice besides non-monotonic clocks, gettimeofday() is only
incrementally worse.
/external/jemalloc/include/jemalloc/internal/nstime.h
1423ee9016f1e7cb0cf3302207bcc488ce4374fc 17-Apr-2016 Jason Evans <jasone@canonware.com> Fix style nits.
/external/jemalloc/include/jemalloc/internal/nstime.h
022f6891faf1fffa435f2bc613c25e8482a32702 03-Mar-2016 Jason Evans <jasone@canonware.com> Avoid a potential innocuous compiler warning.

Add a cast to avoid comparing a ssize_t value to a uint64_t value that
is always larger than a 32-bit ssize_t. This silences an innocuous
compiler warning from e.g. gcc 4.2.1 about the comparison always having
the same result.
/external/jemalloc/include/jemalloc/internal/nstime.h
9bad07903962962de9f656d281b9b1e7e9501c87 21-Feb-2016 Jason Evans <jasone@canonware.com> 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.
/external/jemalloc/include/jemalloc/internal/nstime.h