Home
last modified time | relevance | path

Searched refs:oldsize (Results 1 – 25 of 55) sorted by relevance

123

/external/jemalloc/src/
Dhuge.c152 huge_ralloc_no_move_similar(tsdn_t *tsdn, void *ptr, size_t oldsize, in huge_ralloc_no_move_similar() argument
163 <= oldsize; usize = usize_next) in huge_ralloc_no_move_similar()
166 if (oldsize == usize) in huge_ralloc_no_move_similar()
174 if (oldsize > usize) { in huge_ralloc_no_move_similar()
175 size_t sdiff = oldsize - usize; in huge_ralloc_no_move_similar()
182 &chunk_hooks, ptr, CHUNK_CEILING(oldsize), usize, in huge_ralloc_no_move_similar()
198 arena_chunk_ralloc_huge_similar(tsdn, arena, ptr, oldsize, usize); in huge_ralloc_no_move_similar()
201 if (oldsize < usize) { in huge_ralloc_no_move_similar()
204 memset((void *)((uintptr_t)ptr + oldsize), 0, in huge_ralloc_no_move_similar()
205 usize - oldsize); in huge_ralloc_no_move_similar()
[all …]
Darena.c874 arena_huge_ralloc_stats_update(arena_t *arena, size_t oldsize, size_t usize) in arena_huge_ralloc_stats_update() argument
877 arena_huge_dalloc_stats_update(arena, oldsize); in arena_huge_ralloc_stats_update()
882 arena_huge_ralloc_stats_update_undo(arena_t *arena, size_t oldsize, in arena_huge_ralloc_stats_update_undo() argument
886 arena_huge_dalloc_stats_update_undo(arena, oldsize); in arena_huge_ralloc_stats_update_undo()
990 size_t oldsize, size_t usize) in arena_chunk_ralloc_huge_similar() argument
993 assert(CHUNK_CEILING(oldsize) == CHUNK_CEILING(usize)); in arena_chunk_ralloc_huge_similar()
994 assert(oldsize != usize); in arena_chunk_ralloc_huge_similar()
998 arena_huge_ralloc_stats_update(arena, oldsize, usize); in arena_chunk_ralloc_huge_similar()
999 if (oldsize < usize) in arena_chunk_ralloc_huge_similar()
1000 arena_nactive_add(arena, (usize - oldsize) >> LG_PAGE); in arena_chunk_ralloc_huge_similar()
[all …]
/external/bsdiff/
Dbsdiff.cc49 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
53 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, &patch, in bsdiff()
57 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
60 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, patch, in bsdiff()
64 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
82 local_sai = CreateSuffixArrayIndex(old_buf, oldsize); in bsdiff()
93 DiffEncoder diff_encoder(patch, old_buf, oldsize, new_buf, newsize); in bsdiff()
118 if((scsc+lastoffset<oldsize) && in bsdiff()
125 if((scan+lastoffset<oldsize) && in bsdiff()
143 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in bsdiff()
Dbsdiff_main.cc63 size_t oldsize; in GenerateBsdiffFromFiles() local
64 uint8_t* old_buf = static_cast<uint8_t*>(MapFile(old_filename, &oldsize)); in GenerateBsdiffFromFiles()
72 munmap(old_buf, oldsize); in GenerateBsdiffFromFiles()
94 int ret = bsdiff::bsdiff(old_buf, oldsize, new_buf, newsize, in GenerateBsdiffFromFiles()
97 munmap(old_buf, oldsize); in GenerateBsdiffFromFiles()
/external/icu/icu4c/source/tools/tzcode/
Dialloc.c14 register int oldsize, newsize; in icatalloc() local
18 oldsize = 0; in icatalloc()
21 else oldsize = strlen(old); in icatalloc()
22 if ((result = realloc(old, oldsize + newsize + 1)) != NULL) in icatalloc()
24 (void) strcpy(result + oldsize, new); in icatalloc()
/external/syslinux/core/mem/
Dmalloc.c133 size_t newsize, oldsize, xsize; in bios_realloc() local
155 oldsize = ARENA_SIZE_GET(ah->a.attrs); in bios_realloc()
160 if (oldsize >= newsize && newsize >= (oldsize >> 2) && in bios_realloc()
161 oldsize - newsize < 4096) { in bios_realloc()
165 xsize = oldsize; in bios_realloc()
170 ARENA_SIZE_GET(nah->a.attrs) + oldsize >= newsize) { in bios_realloc()
208 if (newsize > oldsize) { in bios_realloc()
228 oldsize -= sizeof(struct arena_header); in bios_realloc()
231 memcpy(newptr, ptr, min(size, oldsize)); in bios_realloc()
/external/syslinux/gpxe/src/util/
Dpadimg.pl24 my $oldsize = -s $filename;
25 my $padsize = ( ( -$oldsize ) % $blksize );
26 my $newsize = ( $oldsize + $padsize );
30 $filename, $oldsize, $newsize, $padsize, $byte;
/external/dtc/tests/
Dopen_pack.c36 int oldsize, bufsize, packsize; in main() local
45 oldsize = fdt_totalsize(fdt); in main()
47 bufsize = oldsize * 2; in main()
69 oldsize, bufsize, packsize); in main()
Ddel_property.c38 int oldsize, delsize, newsize; in main() local
45 oldsize = fdt_totalsize(fdt); in main()
84 oldsize, delsize, newsize); in main()
86 if (newsize >= oldsize) in main()
Dmangle-layout.c67 int align, size, oldsize; in add_block() local
97 oldsize = buf->size; in add_block()
98 offset = ALIGN(oldsize, align); in add_block()
100 memset(buf->buf + oldsize, 0, offset - oldsize); in add_block()
Ddel_node.c37 int oldsize, delsize, newsize; in main() local
44 oldsize = fdt_totalsize(fdt); in main()
117 oldsize, delsize, newsize); in main()
119 if (newsize >= oldsize) in main()
/external/bsdiff/include/bsdiff/
Dbsdiff.h23 size_t oldsize,
31 size_t oldsize,
47 size_t oldsize,
/external/jemalloc/include/jemalloc/internal/
Djemalloc_internal.h1013 void *iralloct_realign(tsd_t *tsd, void *ptr, size_t oldsize, size_t size,
1016 void *iralloct(tsd_t *tsd, void *ptr, size_t oldsize, size_t size,
1018 void *iralloc(tsd_t *tsd, void *ptr, size_t oldsize, size_t size,
1020 bool ixalloc(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size,
1203 iralloct_realign(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, in iralloct_realign() argument
1229 copysize = (size < oldsize) ? size : oldsize; in iralloct_realign()
1231 isqalloc(tsd, ptr, oldsize, tcache, true); in iralloct_realign()
1236 iralloct(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, size_t alignment, in iralloct() argument
1249 return (iralloct_realign(tsd, ptr, oldsize, size, 0, alignment, in iralloct()
1253 return (arena_ralloc(tsd, arena, ptr, oldsize, size, alignment, zero, in iralloct()
[all …]
Dhuge.h15 bool huge_ralloc_no_move(tsdn_t *tsdn, void *ptr, size_t oldsize,
17 void *huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize,
Djemalloc_internal.h.in1013 void *iralloct_realign(tsd_t *tsd, void *ptr, size_t oldsize, size_t size,
1016 void *iralloct(tsd_t *tsd, void *ptr, size_t oldsize, size_t size,
1018 void *iralloc(tsd_t *tsd, void *ptr, size_t oldsize, size_t size,
1020 bool ixalloc(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size,
1203 iralloct_realign(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, argument
1229 copysize = (size < oldsize) ? size : oldsize;
1231 isqalloc(tsd, ptr, oldsize, tcache, true);
1236 iralloct(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, size_t alignment, argument
1249 return (iralloct_realign(tsd, ptr, oldsize, size, 0, alignment,
1253 return (arena_ralloc(tsd, arena, ptr, oldsize, size, alignment, zero,
[all …]
/external/ltp/testcases/kernel/mem/mtest07/
Dmallocstress.c125 size_t oldsize = 5; in allocate_free() local
149 newsize = size + oldsize; in allocate_free()
150 oldsize = size; in allocate_free()
/external/vboot_reference/firmware/2lib/
D2common.c92 uint32_t oldsize, in vb2_workbuf_realloc() argument
100 vb2_workbuf_free(wb, oldsize); in vb2_workbuf_realloc()
/external/python/cpython2/Objects/
Dtupleobject.c842 Py_ssize_t oldsize; in _PyTuple_Resize() local
852 oldsize = Py_SIZE(v); in _PyTuple_Resize()
853 if (oldsize == newsize) in _PyTuple_Resize()
856 if (oldsize == 0) { in _PyTuple_Resize()
871 for (i = newsize; i < oldsize; i++) { in _PyTuple_Resize()
882 if (newsize > oldsize) in _PyTuple_Resize()
883 memset(&sv->ob_item[oldsize], 0, in _PyTuple_Resize()
884 sizeof(*sv->ob_item) * (newsize - oldsize)); in _PyTuple_Resize()
/external/f2fs-tools/fsck/
Dxattr.c193 int oldsize = ENTRY_SIZE(here); in f2fs_setxattr() local
196 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in f2fs_setxattr()
197 memset(last, 0, oldsize); in f2fs_setxattr()
/external/python/cpython3/Objects/
Dtupleobject.c847 Py_ssize_t oldsize; in _PyTuple_Resize() local
857 oldsize = Py_SIZE(v); in _PyTuple_Resize()
858 if (oldsize == newsize) in _PyTuple_Resize()
861 if (oldsize == 0) { in _PyTuple_Resize()
876 for (i = newsize; i < oldsize; i++) { in _PyTuple_Resize()
887 if (newsize > oldsize) in _PyTuple_Resize()
888 memset(&sv->ob_item[oldsize], 0, in _PyTuple_Resize()
889 sizeof(*sv->ob_item) * (newsize - oldsize)); in _PyTuple_Resize()
/external/oj-libjdwp/src/share/back/
DcommonRef.c329 int oldsize; in newCommonRef() local
335 oldsize = gdata->objectsByIDsize; in newCommonRef()
338 newsize = oldsize*HASH_EXPAND_SCALE; in newCommonRef()
342 for ( i = 0 ; i < oldsize ; i++ ) { in newCommonRef()
/external/selinux/libselinux/src/
Dload_policy.c245 size_t oldsize = size; in selinux_mkload_policy() local
246 rc = genusers(olddata, oldsize, selinux_users_path(), in selinux_mkload_policy()
251 size = oldsize; in selinux_mkload_policy()
/external/valgrind/callgrind/
Dcallstack.c91 Int oldsize; in ensure_stack_size() local
96 oldsize = cs->size; in ensure_stack_size()
104 for(i=oldsize; i<cs->size; i++) in ensure_stack_size()
/external/libxml2/
Ddict.c662 size_t oldsize, i; in xmlDictGrow() local
682 oldsize = dict->size; in xmlDictGrow()
686 if (oldsize == MIN_DICT_SIZE) in xmlDictGrow()
703 for (i = 0; i < oldsize; i++) { in xmlDictGrow()
741 for (i = 0; i < oldsize; i++) { in xmlDictGrow()
779 "xmlDictGrow : from %lu to %lu, %u elems\n", oldsize, size, nbElem); in xmlDictGrow()
Dhash.c231 int oldsize, i; in xmlHashGrow() local
245 oldsize = table->size; in xmlHashGrow()
264 for (i = 0; i < oldsize; i++) { in xmlHashGrow()
273 for (i = 0; i < oldsize; i++) { in xmlHashGrow()
305 "xmlHashGrow : from %d to %d, %d elems\n", oldsize, size, nbElem); in xmlHashGrow()

123