Searched refs:mem_fd (Results 1 – 2 of 2) sorted by relevance
/art/runtime/jit/ |
D | jit_memory_region.cc | 65 unique_fd mem_fd; in Initialize() local 70 mem_fd = unique_fd(CreateZygoteMemory(capacity, error_msg)); in Initialize() 71 if (mem_fd.get() < 0) { in Initialize() 76 mem_fd = unique_fd(art::memfd_create("jit-cache", /* flags= */ 0)); in Initialize() 77 if (mem_fd.get() < 0) { in Initialize() 87 } else if (ftruncate(mem_fd, capacity) != 0) { in Initialize() 106 if (mem_fd.get() >= 0) { in Initialize() 139 mem_fd, in Initialize() 187 mem_fd.get(), in Initialize() 188 (mem_fd.get() >= 0) ? data_capacity : 0, in Initialize() [all …]
|
D | jit.cc | 1252 unique_fd mem_fd = unique_fd(art::memfd_create(name, /* flags= */ MFD_ALLOW_SEALING)); in CreateThreadPool() local 1253 if (mem_fd.get() == -1) { in CreateThreadPool() 1257 if (ftruncate(mem_fd.get(), total_capacity) != 0) { in CreateThreadPool() 1269 mem_fd, in CreateThreadPool() 1289 if (fcntl(mem_fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) == -1) { in CreateThreadPool() 1294 fd_methods_ = unique_fd(mem_fd.release()); in CreateThreadPool()
|