summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid T. Goldblatt <davidtgoldblatt@gmail.com>2017-10-02 01:54:25 (GMT)
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2017-12-19 00:29:10 (GMT)
commit901d94a2b06df09c960836901f6a81a0d3d00732 (patch)
treefe93daf1531cd91e4e135572fb8fd2fd29b11552
parent8aafa270fd56c36db374fa9f294217fa80151b3d (diff)
downloadjemalloc-901d94a2b06df09c960836901f6a81a0d3d00732.zip
jemalloc-901d94a2b06df09c960836901f6a81a0d3d00732.tar.gz
jemalloc-901d94a2b06df09c960836901f6a81a0d3d00732.tar.bz2
Rename cache_alloc_easy to cache_bin_alloc_easy.
This lives in the cache_bin module; just a typo.
-rw-r--r--include/jemalloc/internal/cache_bin.h2
-rw-r--r--include/jemalloc/internal/tcache_inlines.h4
-rw-r--r--src/tcache.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/jemalloc/internal/cache_bin.h b/include/jemalloc/internal/cache_bin.h
index 9b87439..12f3ef2 100644
--- a/include/jemalloc/internal/cache_bin.h
+++ b/include/jemalloc/internal/cache_bin.h
@@ -85,7 +85,7 @@ cache_bin_array_descriptor_init(cache_bin_array_descriptor_t *descriptor,
}
JEMALLOC_ALWAYS_INLINE void *
-cache_alloc_easy(cache_bin_t *bin, bool *success) {
+cache_bin_alloc_easy(cache_bin_t *bin, bool *success) {
void *ret;
if (unlikely(bin->ncached == 0)) {
diff --git a/include/jemalloc/internal/tcache_inlines.h b/include/jemalloc/internal/tcache_inlines.h
index 14ab037..0a6feb5 100644
--- a/include/jemalloc/internal/tcache_inlines.h
+++ b/include/jemalloc/internal/tcache_inlines.h
@@ -48,7 +48,7 @@ tcache_alloc_small(tsd_t *tsd, arena_t *arena, tcache_t *tcache, size_t size,
assert(binind < NBINS);
bin = tcache_small_bin_get(tcache, binind);
- ret = cache_alloc_easy(bin, &tcache_success);
+ ret = cache_bin_alloc_easy(bin, &tcache_success);
assert(tcache_success == (ret != NULL));
if (unlikely(!tcache_success)) {
bool tcache_hard_success;
@@ -109,7 +109,7 @@ tcache_alloc_large(tsd_t *tsd, arena_t *arena, tcache_t *tcache, size_t size,
assert(binind >= NBINS &&binind < nhbins);
bin = tcache_large_bin_get(tcache, binind);
- ret = cache_alloc_easy(bin, &tcache_success);
+ ret = cache_bin_alloc_easy(bin, &tcache_success);
assert(tcache_success == (ret != NULL));
if (unlikely(!tcache_success)) {
/*
diff --git a/src/tcache.c b/src/tcache.c
index 6d51673..a769a6b 100644
--- a/src/tcache.c
+++ b/src/tcache.c
@@ -95,7 +95,7 @@ tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache,
if (config_prof) {
tcache->prof_accumbytes = 0;
}
- ret = cache_alloc_easy(tbin, tcache_success);
+ ret = cache_bin_alloc_easy(tbin, tcache_success);
return ret;
}