| /redis-3.2.3/deps/lua/src/ |
| H A D | lmem.c | 49 int newsize; in luaM_growaux_() local 53 newsize = limit; /* still have at least one free place */ in luaM_growaux_() 56 newsize = (*size)*2; in luaM_growaux_() 57 if (newsize < MINSIZEARRAY) in luaM_growaux_() 58 newsize = MINSIZEARRAY; /* minimum size */ in luaM_growaux_() 60 newblock = luaM_reallocv(L, block, *size, newsize, size_elems); in luaM_growaux_() 61 *size = newsize; /* update only when everything else is OK */ in luaM_growaux_()
|
| H A D | strbuf.c | 136 int reqsize, newsize; in calculate_new_size() local 148 newsize = s->size; in calculate_new_size() 151 while (newsize < reqsize) in calculate_new_size() 152 newsize *= -s->increment; in calculate_new_size() 155 newsize = ((newsize + s->increment - 1) / s->increment) * s->increment; in calculate_new_size() 158 return newsize; in calculate_new_size() 166 int newsize; in strbuf_resize() local 168 newsize = calculate_new_size(s, len); in strbuf_resize() 172 (long)s, s->size, newsize); in strbuf_resize() 175 s->size = newsize; in strbuf_resize()
|
| H A D | lstring.c | 22 void luaS_resize (lua_State *L, int newsize) { in luaS_resize() argument 28 newhash = luaM_newvector(L, newsize, GCObject *); in luaS_resize() 30 for (i=0; i<newsize; i++) newhash[i] = NULL; in luaS_resize() 37 int h1 = lmod(h, newsize); /* new position */ in luaS_resize() 38 lua_assert(cast_int(h%newsize) == lmod(h, newsize)); in luaS_resize() 45 tb->size = newsize; in luaS_resize()
|
| H A D | ldo.h | 47 LUAI_FUNC void luaD_reallocCI (lua_State *L, int newsize); 48 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
|
| H A D | ldo.c | 141 void luaD_reallocstack (lua_State *L, int newsize) { in luaD_reallocstack() argument 143 int realsize = newsize + 1 + EXTRA_STACK; in luaD_reallocstack() 147 L->stack_last = L->stack+newsize; in luaD_reallocstack() 152 void luaD_reallocCI (lua_State *L, int newsize) { in luaD_reallocCI() argument 154 luaM_reallocvector(L, L->base_ci, L->size_ci, newsize, CallInfo); in luaD_reallocCI() 155 L->size_ci = newsize; in luaD_reallocCI()
|
| H A D | lstring.h | 26 LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
|
| H A D | llex.c | 54 size_t newsize; in save() local 57 newsize = b->buffsize * 2; in save() 58 luaZ_resizebuffer(ls->L, b, newsize); in save()
|
| H A D | lua_cmsgpack.c | 120 size_t newsize = (buf->len+len)*2; in mp_buf_append() local 122 buf->b = (unsigned char*)mp_realloc(L, buf->b, buf->len + buf->free, newsize); in mp_buf_append() 123 buf->free = newsize - buf->len; in mp_buf_append()
|
| H A D | lgc.c | 439 size_t newsize = luaZ_sizebuffer(&g->buff) / 2; in checkSizes() local 440 luaZ_resizebuffer(L, &g->buff, newsize); in checkSizes()
|
| /redis-3.2.3/utils/lru/ |
| H A D | test-lru.rb | 43 newsize = r.dbsize 44 break if newsize == oldsize 45 oldsize = newsize
|
| /redis-3.2.3/deps/jemalloc/src/ |
| H A D | arena.c | 1763 size_t oldsize, size_t newsize) in arena_run_trim_head() argument 1767 size_t head_npages = (oldsize - newsize) >> LG_PAGE; in arena_run_trim_head() 1773 assert(oldsize > newsize); in arena_run_trim_head() 1788 UNUSED size_t tail_npages = newsize >> LG_PAGE; in arena_run_trim_head() 1794 arena_mapbits_large_set(chunk, pageind+head_npages, newsize, in arena_run_trim_head() 1803 size_t oldsize, size_t newsize, bool dirty) in arena_run_trim_tail() argument 1807 size_t head_npages = newsize >> LG_PAGE; in arena_run_trim_tail() 1815 assert(oldsize > newsize); in arena_run_trim_tail() 1826 arena_mapbits_large_set(chunk, pageind, newsize, flag_dirty | in arena_run_trim_tail() 1830 UNUSED size_t tail_npages = (oldsize - newsize) >> LG_PAGE; in arena_run_trim_tail() [all …]
|
| /redis-3.2.3/src/ |
| H A D | replication.c | 100 void resizeReplicationBacklog(long long newsize) { in resizeReplicationBacklog() argument 101 if (newsize < CONFIG_REPL_BACKLOG_MIN_SIZE) in resizeReplicationBacklog() 102 newsize = CONFIG_REPL_BACKLOG_MIN_SIZE; in resizeReplicationBacklog() 103 if (server.repl_backlog_size == newsize) return; in resizeReplicationBacklog() 105 server.repl_backlog_size = newsize; in resizeReplicationBacklog()
|
| H A D | server.h | 1238 void resizeReplicationBacklog(long long newsize);
|