summaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal/tcache.h
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2014-10-03 17:16:09 (GMT)
committerJason Evans <jasone@canonware.com>2014-10-03 17:16:09 (GMT)
commit551ebc43647521bdd0bc78558b106762b3388928 (patch)
tree1cb827cc62f7e664604fe0de673d4006747df2fd /include/jemalloc/internal/tcache.h
parentebbd0c91f0935421c04d05c8bdc6e38762a1e561 (diff)
downloadjemalloc-551ebc43647521bdd0bc78558b106762b3388928.zip
jemalloc-551ebc43647521bdd0bc78558b106762b3388928.tar.gz
jemalloc-551ebc43647521bdd0bc78558b106762b3388928.tar.bz2
Convert to uniform style: cond == false --> !cond
Diffstat (limited to 'include/jemalloc/internal/tcache.h')
-rw-r--r--include/jemalloc/internal/tcache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/jemalloc/internal/tcache.h b/include/jemalloc/internal/tcache.h
index 6804668..bc0b41c 100644
--- a/include/jemalloc/internal/tcache.h
+++ b/include/jemalloc/internal/tcache.h
@@ -191,9 +191,9 @@ tcache_get(tsd_t *tsd, bool create)
{
tcache_t *tcache;
- if (config_tcache == false)
+ if (!config_tcache)
return (NULL);
- if (config_lazy_lock && isthreaded == false)
+ if (config_lazy_lock && !isthreaded)
return (NULL);
/*
* If create is true, the caller has already assured that tsd is
@@ -261,7 +261,7 @@ tcache_alloc_small(tcache_t *tcache, size_t size, bool zero)
}
assert(tcache_salloc(ret) == size);
- if (likely(zero == false)) {
+ if (likely(!zero)) {
if (config_fill) {
if (unlikely(opt_junk)) {
arena_alloc_junk_small(ret,
@@ -315,7 +315,7 @@ tcache_alloc_large(tcache_t *tcache, size_t size, bool zero)
arena_mapbits_large_binind_set(chunk, pageind,
BININD_INVALID);
}
- if (likely(zero == false)) {
+ if (likely(!zero)) {
if (config_fill) {
if (unlikely(opt_junk))
memset(ret, 0xa5, size);