mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 12:43:16 +00:00
Fix incorrect usage of cassert.
This commit is contained in:
@@ -189,8 +189,7 @@ thread_event_trigger(tsd_t *tsd, bool delay_event) {
|
||||
thread_allocated_last_event_get(tsd);
|
||||
|
||||
/* Make sure that accumbytes cannot overflow uint64_t. */
|
||||
cassert(THREAD_EVENT_MAX_INTERVAL <=
|
||||
UINT64_MAX - SC_LARGE_MAXCLASS + 1);
|
||||
assert(THREAD_EVENT_MAX_INTERVAL <= UINT64_MAX - SC_LARGE_MAXCLASS + 1);
|
||||
|
||||
thread_allocated_last_event_set(tsd, thread_allocated_after);
|
||||
bool allow_event_trigger = !delay_event && tsd_nominal(tsd) &&
|
||||
|
||||
Reference in New Issue
Block a user