Message ID | 1453767942-19369-42-git-send-email-joern@purestorage.com |
---|---|
State | New |
Headers | show |
diff --git a/tpc/malloc2.13/tcache.h b/tpc/malloc2.13/tcache.h index b269498657f3..b02203398f2f 100644 --- a/tpc/malloc2.13/tcache.h +++ b/tpc/malloc2.13/tcache.h @@ -290,7 +290,7 @@ static void *tcache_malloc(size_t size) * those objects via tcache_gc. Also do it before taking the * lock, to minimize hold times. */ - if (nb <= MAX_PREFETCH_SIZE && (cache->tc_size + nb * 8) > CACHE_SIZE ) + if (nb <= MAX_PREFETCH_SIZE && (cache->tc_size + nb * NO_PREFETCH) > CACHE_SIZE) tcache_gc(cache); arena = arena_get(size);