diff options
author | Jason Evans <je@fb.com> | 2010-12-16 22:12:48 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2010-12-16 22:12:48 (GMT) |
commit | 50ac670d09dd81d8538590095ff196d1d0460852 (patch) | |
tree | 256529ebb28bdf32ec4ef10d07a3caf91c53a342 /jemalloc | |
parent | 0e8d3d2cb9b3c9048b43588271a1e3a837ab186e (diff) | |
download | jemalloc-50ac670d09dd81d8538590095ff196d1d0460852.zip jemalloc-50ac670d09dd81d8538590095ff196d1d0460852.tar.gz jemalloc-50ac670d09dd81d8538590095ff196d1d0460852.tar.bz2 |
Remove high_water from tcache_bin_t.
Remove the high_water field from tcache_bin_t, since it is not useful
for anything.
Diffstat (limited to 'jemalloc')
-rw-r--r-- | jemalloc/include/jemalloc/internal/tcache.h | 6 | ||||
-rw-r--r-- | jemalloc/src/arena.c | 2 |
2 files changed, 0 insertions, 8 deletions
diff --git a/jemalloc/include/jemalloc/internal/tcache.h b/jemalloc/include/jemalloc/internal/tcache.h index 1ad91a9..f431c66 100644 --- a/jemalloc/include/jemalloc/internal/tcache.h +++ b/jemalloc/include/jemalloc/internal/tcache.h @@ -37,7 +37,6 @@ struct tcache_bin_s { tcache_bin_stats_t tstats; # endif unsigned low_water; /* Min # cached since last GC. */ - unsigned high_water; /* Max # cached since last GC. */ unsigned ncached; /* # of cached objects. */ unsigned ncached_max; /* Upper limit on ncached. */ void *avail; /* Chain of available objects. */ @@ -194,7 +193,6 @@ tcache_event(tcache_t *tcache) } } tbin->low_water = tbin->ncached; - tbin->high_water = tbin->ncached; tcache->next_gc_bin++; if (tcache->next_gc_bin == nhbins) @@ -348,8 +346,6 @@ tcache_dalloc_small(tcache_t *tcache, void *ptr) *(void **)ptr = tbin->avail; tbin->avail = ptr; tbin->ncached++; - if (tbin->ncached > tbin->high_water) - tbin->high_water = tbin->ncached; tcache_event(tcache); } @@ -388,8 +384,6 @@ tcache_dalloc_large(tcache_t *tcache, void *ptr, size_t size) *(void **)ptr = tbin->avail; tbin->avail = ptr; tbin->ncached++; - if (tbin->ncached > tbin->high_water) - tbin->high_water = tbin->ncached; tcache_event(tcache); } diff --git a/jemalloc/src/arena.c b/jemalloc/src/arena.c index 7f939b3..f175169 100644 --- a/jemalloc/src/arena.c +++ b/jemalloc/src/arena.c @@ -1358,8 +1358,6 @@ arena_tcache_fill_small(arena_t *arena, tcache_bin_t *tbin, size_t binind #endif malloc_mutex_unlock(&bin->lock); tbin->ncached = i; - if (tbin->ncached > tbin->high_water) - tbin->high_water = tbin->ncached; } #endif |