diff options
author | Jason Evans <jasone@canonware.com> | 2015-08-19 15:21:32 -0700 |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-08-19 15:21:32 -0700 |
commit | d01fd19755bc0c2f5be3143349016dd0d7de7b36 (patch) | |
tree | 39b7471c99728c296f50b81e20c7aec9bacf2cbe /src/tcache.c | |
parent | 5ef33a9f2b9f4fb56553529f7b31f4f5f57ce014 (diff) | |
download | jemalloc-d01fd19755bc0c2f5be3143349016dd0d7de7b36.tar.gz |
Rename index_t to szind_t to avoid an existing type on Solaris.
This resolves #256.
Diffstat (limited to 'src/tcache.c')
-rw-r--r-- | src/tcache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tcache.c b/src/tcache.c index 3814365..f1a30d5 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -32,7 +32,7 @@ size_t tcache_salloc(const void *ptr) void tcache_event_hard(tsd_t *tsd, tcache_t *tcache) { - index_t binind = tcache->next_gc_bin; + szind_t binind = tcache->next_gc_bin; tcache_bin_t *tbin = &tcache->tbins[binind]; tcache_bin_info_t *tbin_info = &tcache_bin_info[binind]; @@ -72,7 +72,7 @@ tcache_event_hard(tsd_t *tsd, tcache_t *tcache) void * tcache_alloc_small_hard(tsd_t *tsd, arena_t *arena, tcache_t *tcache, - tcache_bin_t *tbin, index_t binind) + tcache_bin_t *tbin, szind_t binind) { void *ret; @@ -87,7 +87,7 @@ tcache_alloc_small_hard(tsd_t *tsd, arena_t *arena, tcache_t *tcache, void tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin, - index_t binind, unsigned rem) + szind_t binind, unsigned rem) { arena_t *arena; void *ptr; @@ -166,7 +166,7 @@ tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin, } void -tcache_bin_flush_large(tsd_t *tsd, tcache_bin_t *tbin, index_t binind, +tcache_bin_flush_large(tsd_t *tsd, tcache_bin_t *tbin, szind_t binind, unsigned rem, tcache_t *tcache) { arena_t *arena; |