/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
H A D | mlockall.c | 28 char *memory = (char *)malloc(memsize); in mlockall_0100() local 29 if (memory == NULL) { in mlockall_0100() 30 EXPECT_PTRNE("mlockall_0100", memory, NULL); in mlockall_0100() 33 memset(memory, '\0', memsize); in mlockall_0100() 38 free(memory); in mlockall_0100() 39 memory = NULL; in mlockall_0100() 52 char *memory = (char *)malloc(memsize); in mlockall_0200() local 53 if (memory == NULL) { in mlockall_0200() 54 EXPECT_PTRNE("mlockall_0200", memory, NULL); in mlockall_0200() 57 memset(memory, '\ in mlockall_0200() 71 char *memory = (char *)malloc(memsize); mlockall_0300() local [all...] |
H A D | munlockall.c | 28 char *memory = (char *)malloc(memsize); in munlockall_0100() local 29 if (memory == NULL) { in munlockall_0100() 30 EXPECT_PTRNE("munlockall_0100", memory, NULL); in munlockall_0100() 33 memset(memory, '\0', memsize); in munlockall_0100() 39 free(memory); in munlockall_0100() 40 memory = NULL; in munlockall_0100() 53 char *memory = (char *)malloc(memsize); in munlockall_0200() local 54 if (memory == NULL) { in munlockall_0200() 55 EXPECT_PTRNE("munlockall_0200", memory, NULL); in munlockall_0200() 58 memset(memory, '\ in munlockall_0200() [all...] |
H A D | mlock.c | 23 * @tc.desc : Assert whether locking 4k memory is successful, release resources after use 29 char *memory = (char *)malloc(memsize); in mlock_0100() local 30 if (memory == NULL) { in mlock_0100() 31 EXPECT_PTRNE("mlock_0100", memory, NULL); in mlock_0100() 34 memset(memory, '\0', memsize); in mlock_0100() 35 int result = mlock(memory, memsize); in mlock_0100() 38 munlock(memory, memsize); in mlock_0100() 39 free(memory); in mlock_0100() 40 memory = NULL; in mlock_0100()
|
H A D | munlock.c | 24 * @tc.desc : Unlock locked memory block 29 char *memory = (char *)malloc(TEST_SIZE); in munlock_0100() local 30 if (memory == NULL) { in munlock_0100() 31 EXPECT_PTRNE("munlock_0100", memory, NULL); in munlock_0100() 35 memset(memory, 0x0, TEST_SIZE); in munlock_0100() 36 int ret = mlock(memory, TEST_SIZE); in munlock_0100() 39 ret = munlock(memory, TEST_SIZE); in munlock_0100() 41 free(memory); in munlock_0100() 42 memory = NULL; in munlock_0100()
|
/third_party/skia/third_party/externals/freetype/builds/vms/ |
H A D | ftsystem.c | 28 /* memory-mapping includes and definitions */ 85 /* The memory allocation function. */ 88 /* memory :: A pointer to the memory object. */ 96 ft_alloc( FT_Memory memory, in ft_alloc() argument 99 FT_UNUSED( memory ); in ft_alloc() 111 /* The memory reallocation function. */ 114 /* memory :: A pointer to the memory object. */ 116 /* cur_size :: The current size of the allocated memory bloc 126 ft_realloc( FT_Memory memory, long cur_size, long new_size, void* block ) ft_realloc() argument 152 ft_free( FT_Memory memory, void* block ) ft_free() argument 297 FT_Memory memory; FT_BASE_DEF() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | mlock2.c | 22 * @tc.desc : Lock 4k memory, release memory after unlocking 28 char *memory = (char *)malloc(memsize); in mlock2_0100() local 29 if (memory == NULL) { in mlock2_0100() 30 EXPECT_PTRNE("mlock2_0100", memory, NULL); in mlock2_0100() 33 memset(memory, '\0', memsize); in mlock2_0100() 34 int ret = mlock2(memory, memsize, CMPFLAG); in mlock2_0100() 37 munlock(memory, memsize); in mlock2_0100() 38 free(memory); in mlock2_0100() 39 memory in mlock2_0100() 51 char *memory = (char *)malloc(memsize); mlock2_0200() local [all...] |
/third_party/skia/third_party/externals/freetype/builds/unix/ |
H A D | ftsystem.c | 28 /* memory-mapping includes and definitions */ 95 * The memory allocation function. 98 * memory :: 99 * A pointer to the memory object. 108 ft_alloc( FT_Memory memory, in ft_alloc() argument 111 FT_UNUSED( memory ); in ft_alloc() 123 * The memory reallocation function. 126 * memory :: 127 * A pointer to the memory object. 130 * The current size of the allocated memory bloc 142 ft_realloc( FT_Memory memory, long cur_size, long new_size, void* block ) ft_realloc() argument 170 ft_free( FT_Memory memory, void* block ) ft_free() argument 405 FT_Memory memory; FT_BASE_DEF() local [all...] |
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftsystem.c | 21 * low-level, i.e. memory management, i/o access as well as thread 58 * The memory allocation function. 61 * memory :: 62 * A pointer to the memory object. 71 ft_alloc( FT_Memory memory, in ft_alloc() argument 74 FT_UNUSED( memory ); in ft_alloc() 86 * The memory reallocation function. 89 * memory :: 90 * A pointer to the memory object. 93 * The current size of the allocated memory bloc 105 ft_realloc( FT_Memory memory, long cur_size, long new_size, void* block ) ft_realloc() argument 133 ft_free( FT_Memory memory, void* block ) ft_free() argument 302 FT_Memory memory; FT_BASE_DEF() local [all...] |
H A D | ftdbgmem.c | 33 * memory, however. 42 FT_DumpMemory( FT_Memory memory ); 54 * site. This is useful to know where memory operations happen the 79 * We don't need a resizable array for the memory sources because 86 * memory block. If KEEPALIVE is defined, blocks that are freed by 89 * frees, at the price of a large memory footprint during execution. 133 FT_Memory memory; member 229 FT_Memory memory = table->memory; in ft_mem_table_alloc() local 233 memory in ft_mem_table_alloc() 245 FT_Memory memory = table->memory; ft_mem_table_free() local 636 ft_mem_debug_alloc( FT_Memory memory, FT_Long size ) ft_mem_debug_alloc() argument 672 ft_mem_debug_free( FT_Memory memory, FT_Pointer block ) ft_mem_debug_free() argument 696 ft_mem_debug_realloc( FT_Memory memory, FT_Long cur_size, FT_Long new_size, FT_Pointer block ) ft_mem_debug_realloc() argument [all...] |
H A D | ftutil.c | 5 * FreeType utility file for memory and list management (body). 32 #define FT_COMPONENT memory 49 ft_mem_alloc( FT_Memory memory, in FT_BASE_DEF() 54 FT_Pointer block = ft_mem_qalloc( memory, size, &error ); in FT_BASE_DEF() 65 ft_mem_qalloc( FT_Memory memory, in FT_BASE_DEF() 75 block = memory->alloc( memory, size ); in FT_BASE_DEF() 91 ft_mem_realloc( FT_Memory memory, in FT_BASE_DEF() 101 block = ft_mem_qrealloc( memory, item_size, in FT_BASE_DEF() 113 ft_mem_qrealloc( FT_Memory memory, in FT_BASE_DEF() 169 ft_mem_free( FT_Memory memory, const void *P ) ft_mem_free() argument 412 FT_List_Finalize( FT_List list, FT_List_Destructor destroy, FT_Memory memory, void* user ) FT_List_Finalize() argument [all...] |
/third_party/skia/third_party/externals/freetype/builds/amiga/src/base/ |
H A D | ftsystem.c | 21 /* low-level, i.e. memory management, i/o access as well as thread */ 89 APTR memory ) in Free_VecPooled() 91 ULONG *realmem = (ULONG *)memory - 1; in Free_VecPooled() 130 /* The memory allocation function. */ 133 /* memory :: A pointer to the memory object. */ 141 ft_alloc( FT_Memory memory, in ft_alloc() argument 145 return AllocVecPooled( memory->user, size ); in ft_alloc() 147 return Alloc_VecPooled( memory->user, size ); in ft_alloc() 158 /* The memory reallocatio 173 ft_realloc( FT_Memory memory, long cur_size, long new_size, void* block ) ft_realloc() argument 213 ft_free( FT_Memory memory, void* block ) ft_free() argument 477 FT_Memory memory; FT_BASE_DEF() local [all...] |
/third_party/skia/third_party/externals/freetype/src/pshinter/ |
H A D | pshrec.c | 50 FT_Memory memory ) in ps_hint_table_done() 62 FT_Memory memory ) in ps_hint_table_ensure() 82 FT_Memory memory, in ps_hint_table_alloc() 95 error = ps_hint_table_ensure( table, count, memory ); in ps_hint_table_alloc() 124 FT_Memory memory ) in ps_mask_done() 137 FT_Memory memory ) in ps_mask_ensure() 186 FT_Memory memory ) in ps_mask_set_bit() 194 error = ps_mask_ensure( mask, idx + 1, memory ); in ps_mask_set_bit() 212 FT_Memory memory ) in ps_mask_table_done() 219 ps_mask_done( mask, memory ); in ps_mask_table_done() 81 ps_hint_table_alloc( PS_Hint_Table table, FT_Memory memory, PS_Hint *ahint ) ps_hint_table_alloc() argument 250 ps_mask_table_alloc( PS_Mask_Table table, FT_Memory memory, PS_Mask *amask ) ps_mask_table_alloc() argument 282 ps_mask_table_last( PS_Mask_Table table, FT_Memory memory, PS_Mask *amask ) ps_mask_table_last() argument 646 ps_dimension_add_t1stem( PS_Dimension dim, FT_Int pos, FT_Int len, FT_Memory memory, FT_Int *aindex ) ps_dimension_add_t1stem() argument 800 FT_Memory memory = hints->memory; ps_hints_done() local 861 FT_Memory memory = hints->memory; ps_hints_stem() local 893 FT_Memory memory = hints->memory; ps_hints_t1stem3() local 954 FT_Memory memory = hints->memory; ps_hints_t1reset() local 996 FT_Memory memory = hints->memory; ps_hints_t2mask() local 1041 FT_Memory memory = hints->memory; ps_hints_t2counter() local 1086 FT_Memory memory = hints->memory; ps_hints_close() local [all...] |
/third_party/skia/third_party/externals/freetype/builds/windows/ |
H A D | ftsystem.c | 28 /* memory mapping and allocation includes and definitions */ 55 * The memory allocation function. 58 * memory :: 59 * A pointer to the memory object. 68 ft_alloc( FT_Memory memory, in ft_alloc() argument 71 return HeapAlloc( memory->user, 0, size ); in ft_alloc() 81 * The memory reallocation function. 84 * memory :: 85 * A pointer to the memory object. 88 * The current size of the allocated memory bloc 100 ft_realloc( FT_Memory memory, long cur_size, long new_size, void* block ) ft_realloc() argument 127 ft_free( FT_Memory memory, void* block ) ft_free() argument 402 FT_Memory memory; FT_BASE_DEF() local [all...] |
/third_party/ltp/testcases/kernel/controllers/memcg/functional/ |
H A D | memcg_stat_test.sh | 43 echo 1 > memory.use_hierarchy 48 EXPECT_PASS echo $limit \> memory.limit_in_bytes 49 EXPECT_PASS echo $((limit + PAGESIZES * 2)) \> subgroup/memory.limit_in_bytes 63 ROD echo 0 \> memory.use_hierarchy 66 EXPECT_PASS echo $PAGESIZES \> memory.limit_in_bytes 67 EXPECT_PASS echo $((PAGESIZES * 2)) \> subgroup/memory.limit_in_bytes 81 ROD echo 1 \> memory.use_hierarchy 84 EXPECT_PASS echo $PAGESIZES \> memory.limit_in_bytes 85 EXPECT_PASS echo $PAGESIZES \> memory.memsw.limit_in_bytes 86 EXPECT_PASS echo $((PAGESIZES * 2)) \> subgroup/memory [all...] |
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
H A D | memorypool.c | 22 * @brief memory pool 47 * Handle for a memory pool. Pools are not reentrant and must not be 54 * Pointer to the pool's memory 56 char *memory; member 81 * Create a memory pool. 96 pool->memory = MAP_FAILED; in MHD_pool_create() 99 pool->memory = mmap (NULL, max, PROT_READ | PROT_WRITE, in MHD_pool_create() 102 pool->memory = VirtualAlloc(NULL, max, MEM_COMMIT | MEM_RESERVE, in MHD_pool_create() 106 pool->memory = MAP_FAILED; in MHD_pool_create() 108 if ((pool->memory in MHD_pool_create() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Common/ |
H A D | Memory.cpp | 33 #include <memory.h> 92 void *memory = allocateRaw(bytes, alignment); in allocate() local 94 if(memory) in allocate() 96 memset(memory, 0, bytes); in allocate() 99 return memory; in allocate() 102 void deallocate(void *memory) in deallocate() argument 104 if(memory) in deallocate() 106 unsigned char *aligned = (unsigned char*)memory; in deallocate() 113 void clear(uint16_t *memory, uint16_t element, size_t count) in clear() argument 116 __stosw(memory, elemen in clear() 127 clear(uint32_t *memory, uint32_t element, size_t count) clear() argument [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/malloc/ |
H A D | posix_memalign.c | 24 * @tc.desc : Allocate memory blocks with 16-byte alignment 33 void *memory = NULL; in posix_memalign_0100() local 34 int rev = posix_memalign(&memory, TEST_MEMALIGN_ALIGN, block[i]); in posix_memalign_0100() 36 EXPECT_TRUE("posix_memalign_0100", memory != NULL); in posix_memalign_0100() 37 if (memory) { in posix_memalign_0100() 38 free(memory); in posix_memalign_0100() 45 * @tc.desc : Synchronize a file with a memory map 50 void *memory = NULL; in posix_memalign_0200() local 51 int rev = posix_memalign(&memory, 1, 1); in posix_memalign_0200() 53 if (memory) { in posix_memalign_0200() [all...] |
/third_party/node/deps/v8/third_party/wasm-api/example/ |
H A D | memory.cc | 11 if (exports.size() <= i || !exports[i]->memory()) { 12 std::cout << "> Error accessing memory export " << i << "!" << std::endl; 15 return exports[i]->memory(); 73 std::ifstream file("memory.wasm"); in run() 105 auto memory = get_export_memory(exports, i++); in run() local 111 assert(memory->copy()->same(memory)); in run() 113 // Check initial memory. in run() 114 std::cout << "Checking memory..." << std::endl; in run() 115 check(memory in run() [all...] |
H A D | memory.c | 13 printf("> Error accessing memory export %zu!\n", i); in get_export_memory() 107 FILE* file = fopen("memory.wasm", "r"); in main() 147 wasm_memory_t* memory = get_export_memory(&exports, i++); in main() local 155 own wasm_memory_t* copy = wasm_memory_copy(memory); in main() 156 assert(wasm_memory_same(memory, copy)); in main() 159 // Check initial memory. in main() 160 printf("Checking memory...\n"); in main() 161 check(wasm_memory_size(memory) == 2); in main() 162 check(wasm_memory_data_size(memory) == 0x20000); in main() 163 check(wasm_memory_data(memory)[ in main() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
H A D | vktApiBufferAndImageAllocationUtil.cpp | 22 * allocation memory for buffers and images 50 de::MovePtr<Allocation>& memory) const in createTestBuffer() 67 memory = allocator.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), requirement); in createTestBuffer() 68 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, memory->getMemory(), 0)); in createTestBuffer() 80 de::MovePtr<Allocation>& memory) const in createTestBuffer() 102 memory = allocateDedicated(vkInstance, vk, vkPhysicalDevice, vkDevice, buffer.get(), requirement); in createTestBuffer() 103 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, memory->getMemory(), memory->getOffset())); in createTestBuffer() 112 de::MovePtr<Allocation>& memory, in createTestImage() 140 memory in createTestImage() 106 createTestImage(tcu::IVec2 size, VkFormat format, Context& context, Allocator& allocator, Move<VkImage>& image, const MemoryRequirement& requirement, de::MovePtr<Allocation>& memory, VkImageTiling tiling) const createTestImage() argument 144 createTestImage(tcu::IVec2 size, VkFormat format, Context& context, Allocator& allocator, Move<VkImage>& image, const MemoryRequirement& requirement, de::MovePtr<Allocation>& memory, VkImageTiling tiling) const createTestImage() argument [all...] |
/third_party/skia/third_party/externals/freetype/include/freetype/internal/ |
H A D | ftmemory.h | 5 * The FreeType memory management macros (specification). 124 /* the allocated or reallocated memory with zero bytes. */ 127 ft_mem_alloc( FT_Memory memory, 132 ft_mem_qalloc( FT_Memory memory, 137 ft_mem_realloc( FT_Memory memory, 145 ft_mem_qrealloc( FT_Memory memory, 153 ft_mem_free( FT_Memory memory, 158 /* the allocated or reallocated memory with zero bytes. */ 161 FT_ASSIGNP_INNER( ptr, ft_mem_alloc( memory, \ 167 FT_DEBUG_INNER( ft_mem_free( memory, (pt [all...] |
/third_party/node/deps/v8/src/zone/ |
H A D | accounting-allocator.cc | 7 #include <memory> 37 VirtualMemory memory(platform_allocator, ZoneCompression::kReservationSize, in ReserveAddressSpace() 39 if (memory.IsReserved()) { in ReserveAddressSpace() 40 CHECK(IsAligned(memory.address(), ZoneCompression::kReservationAlignment)); in ReserveAddressSpace() 41 return memory; in ReserveAddressSpace() 45 "Fatal process out of memory: Failed to reserve memory for compressed " in ReserveAddressSpace() 76 VirtualMemory memory = ReserveAddressSpace(platform_page_allocator); in AccountingAllocator() local 77 reserved_area_ = std::make_unique<VirtualMemory>(std::move(memory)); in AccountingAllocator() 87 void* memory; in AllocateSegment() local [all...] |
/third_party/node/src/ |
H A D | node_wasi.cc | 143 tracker->TrackField("memory", memory_); in MemoryInfo() 255 char* memory; in ArgsGet() local 262 GET_BACKING_STORE_OR_RETURN(wasi, args, &memory, &mem_size); in ArgsGet() 272 char* argv_buf = &memory[argv_buf_offset]; in ArgsGet() 279 uvwasi_serdes_write_uint32_t(memory, in ArgsGet() 294 char* memory; in ArgsSizesGet() local 301 GET_BACKING_STORE_OR_RETURN(wasi, args, &memory, &mem_size); in ArgsSizesGet() 316 uvwasi_serdes_write_size_t(memory, argc_offset, argc); in ArgsSizesGet() 317 uvwasi_serdes_write_size_t(memory, argv_buf_offset, argv_buf_size); in ArgsSizesGet() 328 char* memory; in ClockResGet() local 356 char* memory; ClockTimeGet() local 385 char* memory; EnvironGet() local 427 char* memory; EnvironSizesGet() local 519 char* memory; FdFdstatGet() local 579 char* memory; FdFilestatGet() local 646 char* memory; FdPread() local 694 char* memory; FdPrestatGet() local 718 char* memory; FdPrestatDirName() local 743 char* memory; FdPwrite() local 801 char* memory; FdRead() local 845 char* memory; FdReaddir() local 901 char* memory; FdSeek() local 944 char* memory; FdTell() local 972 char* memory; FdWrite() local 1022 char* memory; PathCreateDirectory() local 1047 char* memory; PathFilestatGet() local 1090 char* memory; PathFilestatSetTimes() local 1133 char* memory; PathLink() local 1179 char* memory; PathOpen() local 1232 char* memory; PathReadlink() local 1277 char* memory; PathRemoveDirectory() local 1303 char* memory; PathRename() local 1342 char* memory; PathSymlink() local 1376 char* memory; PathUnlinkFile() local 1400 char* memory; PollOneoff() local 1481 char* memory; RandomGet() local 1511 char* memory; SockAccept() local 1546 char* memory; SockRecv() local 1607 char* memory; SockSend() local 1686 Local<WasmMemoryObject> memory = PersistentToLocal::Strong(this->memory_); backingStore() local [all...] |
/third_party/skia/include/gpu/vk/ |
H A D | GrVkMemoryAllocator.h | 23 // Says that the backing memory can only be accessed by the device. Additionally the device 24 // may lazily allocate the memory. This cannot be used with buffers that will be host 25 // visible. Setting this flag does not guarantee that we will allocate memory that respects 26 // it, but we will try to prefer memory that can respect it. 40 // in device local memory. 45 // will always be mappable and coherent memory, and it will prefer to be in device local 46 // memory. 49 // buffers). Will always be mappable and coherent memory. 52 // be mappable memory, and will prefer cached memory 63 allocateImageMemory(VkImage image, AllocationPropertyFlags flags, GrVkBackendMemory* memory) allocateImageMemory() argument 81 allocateBufferMemory(VkBuffer buffer, BufferUsage usage, AllocationPropertyFlags flags, GrVkBackendMemory* memory) allocateBufferMemory() argument 101 mapMemory(const GrVkBackendMemory& memory, void** data) mapMemory() argument 117 flushMemory(const GrVkBackendMemory& memory, VkDeviceSize offset, VkDeviceSize size) flushMemory() argument 123 invalidateMemory(const GrVkBackendMemory& memory, VkDeviceSize offset, VkDeviceSize size) invalidateMemory() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | PoolAlloc.cpp | 83 // Given memory pointing to |header|, returns |data|. 84 static uint8_t *GetDataPointer(uint8_t *memory, size_t alignment) in GetDataPointer() argument 86 uint8_t *alignedPtr = memory + kGuardBlockSize + HeaderSize(); in GetDataPointer() 88 // |memory| must be aligned already such that user data is aligned to |alignment|. in GetDataPointer() 205 // be obtained to allocate memory. in initialize() 361 uint8_t *memory = currentPagePtr + preAllocationPadding; in allocate() local 364 return initializeAllocation(memory, numBytes); in allocate() 372 // We don't know what the alignment of the new allocated memory will be, so conservatively in allocate() 373 // allocate enough memory for up to alignment extra bytes being needed. in allocate() 382 PageHeader *memory in allocate() local 421 PageHeader *memory; allocateNewPage() local 453 initializeAllocation(uint8_t *memory, size_t numBytes) initializeAllocation() argument [all...] |