Searched refs:size_to_mmap (Results 1 – 2 of 2) sorted by relevance
/arkcompiler/runtime_core/libziparchive/tests/ |
D | libziparchive_tests.cpp | 205 uint32_t size_to_mmap = in UnzipFileCheckTxt() local 208 void *mem = os::mem::MapRWAnonymousRaw(size_to_mmap, false); in UnzipFileCheckTxt() 217 ret = ExtractToMemory(zipfile, reinterpret_cast<uint8_t *>(mem), size_to_mmap); in UnzipFileCheckTxt() 219 os::mem::UnmapRaw(mem, size_to_mmap); in UnzipFileCheckTxt() 230 os::mem::UnmapRaw(mem, size_to_mmap); in UnzipFileCheckTxt() 240 os::mem::UnmapRaw(mem, size_to_mmap); in UnzipFileCheckTxt() 250 os::mem::UnmapRaw(mem, size_to_mmap); in UnzipFileCheckTxt() 320 uint32_t size_to_mmap = in UnzipFileCheckPandaFile() local 323 void *mem = os::mem::MapRWAnonymousRaw(size_to_mmap, false); in UnzipFileCheckPandaFile() 332 ret = ExtractToMemory(zipfile, reinterpret_cast<uint8_t *>(mem), size_to_mmap); in UnzipFileCheckPandaFile() [all …]
|
/arkcompiler/runtime_core/libpandafile/ |
D | file.cpp | 142 size_t size_to_mmap = AlignUp(uncompressed_length, panda::os::mem::GetPageSize()); in OpenPandaFileFromZipFile() local 143 void *mem = os::mem::MapRWAnonymousRaw(size_to_mmap, false); in OpenPandaFileFromZipFile() 150 os::mem::BytePtr ptr(reinterpret_cast<std::byte *>(mem), size_to_mmap, os::mem::MmapDeleter); in OpenPandaFileFromZipFile() 154 …auto ret = os::mem::TagAnonymousMemory(reinterpret_cast<void *>(ptr.Get()), size_to_mmap, it->seco… in OpenPandaFileFromZipFile() 162 …auto extract_error = ExtractToMemory(handle, reinterpret_cast<uint8_t *>(ptr.Get()), size_to_mmap); in OpenPandaFileFromZipFile() 281 size_t size_to_mmap = AlignUp(size, panda::os::mem::GetPageSize()); in OpenPandaFileFromMemory() local 282 void *mem = os::mem::MapRWAnonymousRaw(size_to_mmap, false); in OpenPandaFileFromMemory() 287 if (memcpy_s(mem, size_to_mmap, buffer, size) != 0) { in OpenPandaFileFromMemory() 291 … os::mem::ConstBytePtr ptr(reinterpret_cast<std::byte *>(mem), size_to_mmap, os::mem::MmapDeleter); in OpenPandaFileFromMemory()
|