Home
last modified time | relevance | path

Searched refs:PROT_WRITE (Results 1 – 25 of 46) sorted by relevance

12

/art/runtime/jit/
Djit_memory_region_test.cc67 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in BasicTest()
85 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in BasicTest()
90 CHECK_EQ(mprotect(addr, size, PROT_READ | PROT_WRITE), 0) << strerror(errno); in BasicTest()
123 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in TestUnmapWritableAfterFork()
147 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2.get(), 0)); in TestUnmapWritableAfterFork()
220 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in TestMadviseDontFork()
245 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2.get(), 0)); in TestMadviseDontFork()
317 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in TestFromSharedToPrivate()
329 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2.get(), 0)); in TestFromSharedToPrivate()
345 CHECK_EQ(mmap(addr, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd.get(), 0), in TestFromSharedToPrivate()
[all …]
Djit_scoped_code_cache_write.h31 static constexpr int kProtRW = PROT_READ | PROT_WRITE;
32 static constexpr int kProtRWX = PROT_READ | PROT_WRITE | PROT_EXEC;
/art/libartbase/base/
Dmem_map_test.cc71 PROT_READ | PROT_WRITE, in RemapAtEndTest()
86 PROT_READ | PROT_WRITE, in RemapAtEndTest()
117 PROT_READ | PROT_WRITE, in RemapAtEndTest()
173 PROT_WRITE | PROT_READ, in TEST_F()
210 PROT_WRITE | PROT_READ, in TEST_F()
250 PROT_WRITE | PROT_READ, in TEST_F()
282 PROT_READ | PROT_WRITE, in TEST_F()
292 PROT_WRITE | PROT_READ, in TEST_F()
338 PROT_READ | PROT_WRITE, in TEST_F()
351 PROT_READ | PROT_WRITE, in TEST_F()
[all …]
Dmem_map_windows.cc27 #ifdef PROT_WRITE
28 #undef PROT_WRITE
52 if ((prot != PROT_READ) && (prot != (PROT_READ | PROT_WRITE))) { in TargetMMap()
68 if ((prot & PROT_WRITE) != 0) { in TargetMMap()
Dsafe_copy_test.cc37 void* map = mmap(nullptr, kPageSize * 4, PROT_READ | PROT_WRITE, in TEST()
85 void* src_map = mmap(nullptr, kPageSize * 3, PROT_READ | PROT_WRITE, in TEST()
90 void* dst_map = mmap(nullptr, kPageSize * 4, PROT_READ | PROT_WRITE, in TEST()
Dmman.h25 #define PROT_WRITE 0x2 macro
Dzip_archive.cc79 PROT_READ | PROT_WRITE, in ExtractToMemMap()
144 PROT_READ | PROT_WRITE, in MapDirectlyFromFile()
Dmem_map_fuchsia.cc80 if ((prot & PROT_WRITE) != 0) { in TargetMMap()
/art/runtime/gc/collector/
Dimmune_spaces_test.cc91 PROT_READ | PROT_WRITE, in CreateImageSpace()
104 PROT_READ | PROT_WRITE, in CreateImageSpace()
198 PROT_READ | PROT_WRITE, in TEST_F()
261 PROT_READ | PROT_WRITE, in TEST_F()
335 PROT_READ | PROT_WRITE, in TEST_F()
374 PROT_READ | PROT_WRITE, in TEST_F()
/art/runtime/gc/space/
Dmalloc_space.cc111 PROT_READ | PROT_WRITE, in CreateMemMap()
160 CheckedCall(mprotect, GetName(), original_end, increment, PROT_READ | PROT_WRITE); in MoreCore()
213 End(), alloc_space_name, PROT_READ | PROT_WRITE, &error_msg); in CreateZygoteSpace()
Dlarge_object_space.cc142 PROT_READ | PROT_WRITE, in Alloc()
365 PROT_READ | PROT_WRITE, in Create()
386 PROT_READ | PROT_WRITE, in FreeListSpace()
550 CheckedCall(mprotect, __FUNCTION__, obj, allocation_size, PROT_READ | PROT_WRITE); in Alloc()
Dbump_pointer_space.cc32 PROT_READ | PROT_WRITE, in Create()
Dregion_space.cc62 PROT_READ | PROT_WRITE, in CreateMemMap()
796 CheckedCall(mprotect, __FUNCTION__, Begin(), Size(), PROT_READ | PROT_WRITE); in Unprotect()
1081 CheckedCall(mprotect, __FUNCTION__, Begin(), kRegionSize, PROT_READ | PROT_WRITE); in MarkAsAllocated()
/art/test/305-other-fault-handler/
Dfault_handler.cc63 CHECK(target_map_.Protect(PROT_READ | PROT_WRITE)) << "Failed to mprotect R/W"; in Action()
/art/runtime/gc/accounting/
Dcard_table.cc69 PROT_READ | PROT_WRITE, in Create()
Dbitmap.cc53 PROT_READ | PROT_WRITE, in AllocateMemMap()
Dread_barrier_table.h44 PROT_READ | PROT_WRITE, in ReadBarrierTable()
Datomic_stack.h257 PROT_READ | PROT_WRITE, in Init()
Dspace_bitmap.cc88 PROT_READ | PROT_WRITE, in Create()
/art/runtime/base/
Dmem_map_arena_pool.cc62 PROT_READ | PROT_WRITE, in Allocate()
/art/openjdkjvmti/
Dti_class_definition.cc56 CHECK_EQ(temp_mmap_.GetProtect(), PROT_READ | PROT_WRITE); in InitializeMemory()
257 PROT_READ | PROT_WRITE, in InitWithDex()
/art/runtime/
Dindirect_reference_table.cc87 PROT_READ | PROT_WRITE, in IndirectReferenceTable()
231 PROT_READ | PROT_WRITE, in Resize()
Dthread_pool.cc61 PROT_READ | PROT_WRITE, in ThreadPoolWorker()
Delf_file.cc70 prot = PROT_READ | PROT_WRITE; in Open()
89 new ElfFileImpl<ElfTypes>(file, (prot & PROT_WRITE) != 0, /* program_header_only= */ false)); in Open()
1188 prot |= PROT_WRITE; in Load()
1195 prot |= PROT_WRITE; in Load()
/art/compiler/utils/
Dswap_space.cc155 mmap(nullptr, next_part, PROT_READ | PROT_WRITE, MAP_SHARED, fd_, size_)); in NewFileChunk()

12