Home
last modified time | relevance | path

Searched refs:new_mem (Results 1 – 5 of 5) sorted by relevance

/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c139 void *new_mem; in test_max_hugepages() local
151 new_mem = mmap(NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages()
152 if (new_mem == MAP_FAILED) { in test_max_hugepages()
165 SAFE_MUNMAP(new_mem, hps); in test_max_hugepages()
/external/webp/src/enc/
Dpicture_enc.c195 uint8_t* new_mem; in WebPMemoryWrite() local
199 new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1); in WebPMemoryWrite()
200 if (new_mem == NULL) { in WebPMemoryWrite()
204 memcpy(new_mem, w->mem, w->size); in WebPMemoryWrite()
207 w->mem = new_mem; in WebPMemoryWrite()
/external/compiler-rt/lib/asan/
Dasan_interceptors.cc563 void *new_mem = asan_malloc(length + 1, &stack); in INTERCEPTOR() local
564 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR()
565 return reinterpret_cast<char*>(new_mem); in INTERCEPTOR()
579 void *new_mem = asan_malloc(length + 1, &stack); in INTERCEPTOR() local
580 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR()
581 return reinterpret_cast<char*>(new_mem); in INTERCEPTOR()
/external/e2fsprogs/e2fsck/
Drehash.c259 void *new_mem; in alloc_size_dir() local
262 new_mem = realloc(outdir->buf, blocks * fs->blocksize); in alloc_size_dir()
263 if (!new_mem) in alloc_size_dir()
265 outdir->buf = new_mem; in alloc_size_dir()
266 new_mem = realloc(outdir->hashes, in alloc_size_dir()
268 if (!new_mem) in alloc_size_dir()
270 outdir->hashes = new_mem; in alloc_size_dir()
/external/v8/src/wasm/
Dwasm-code-manager.cc653 VirtualMemory& new_mem = owned_code_space_.back(); in AllocateForCode() local
654 wasm_code_manager_->TryAllocate(size, &new_mem, in AllocateForCode()
656 if (!new_mem.IsReserved()) return kNullAddress; in AllocateForCode()
659 wasm_code_manager_->AssignRanges(new_mem.address(), new_mem.end(), this); in AllocateForCode()
661 free_code_space_.Merge({new_mem.address(), new_mem.end()}); in AllocateForCode()