Home
last modified time | relevance | path

Searched refs:Protect (Results 1 – 25 of 93) sorted by relevance

1234

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
DMemory.inc107 int Protect = getPosixProtectionFlags(PFlags);
110 Protect |= PROT_MPROTECT(PROT_READ | PROT_WRITE | PROT_EXEC);
123 void *Addr = ::mmap(reinterpret_cast<void *>(Start), PageSize*NumPages, Protect,
182 int Protect = getPosixProtectionFlags(Flags);
192 if (InvalidateCache && !(Protect & PROT_READ)) {
193 int Result = ::mprotect((void *)Start, End - Start, Protect | PROT_READ);
202 int Result = ::mprotect((void *)Start, End - Start, Protect);
/external/llvm-project/llvm/lib/Support/Unix/
DMemory.inc108 int Protect = getPosixProtectionFlags(PFlags);
111 Protect |= PROT_MPROTECT(PROT_READ | PROT_WRITE | PROT_EXEC);
124 void *Addr = ::mmap(reinterpret_cast<void *>(Start), PageSize*NumPages, Protect,
183 int Protect = getPosixProtectionFlags(Flags);
193 if (InvalidateCache && !(Protect & PROT_READ)) {
194 int Result = ::mprotect((void *)Start, End - Start, Protect | PROT_READ);
203 int Result = ::mprotect((void *)Start, End - Start, Protect);
/external/lua/src/
Dlvm.c997 Protect(cond = other(L, s2v(ra), rb)); \
1017 Protect(cond = luaT_callorderiTM(L, s2v(ra), im, inv, isf, tm)); \
1089 #define Protect(exp) (savestate(L,ci), (exp), updatetrap(ci)) macro
1223 Protect(luaV_finishget(L, upval, rc, ra, slot)); in luaV_execute()
1237 Protect(luaV_finishget(L, rb, rc, ra, slot)); in luaV_execute()
1250 Protect(luaV_finishget(L, rb, &key, ra, slot)); in luaV_execute()
1263 Protect(luaV_finishget(L, rb, rc, ra, slot)); in luaV_execute()
1276 Protect(luaV_finishset(L, upval, rb, rc, slot)); in luaV_execute()
1290 Protect(luaV_finishset(L, s2v(ra), rb, rc, slot)); in luaV_execute()
1303 Protect(luaV_finishset(L, s2v(ra), &key, rc, slot)); in luaV_execute()
[all …]
/external/llvm/lib/Support/Windows/
DMemory.inc101 DWORD Protect = getWindowsProtectionFlags(Flags);
105 MEM_RESERVE | MEM_COMMIT, Protect);
143 DWORD Protect = getWindowsProtectionFlags(Flags);
146 if (!VirtualProtect(M.Address, M.Size, Protect, &OldFlags))
188 return info.Protect;
/external/llvm-project/llvm/lib/Support/Windows/
DMemory.inc132 DWORD Protect = getWindowsProtectionFlags(Flags);
136 AllocSize, AllocType, Protect);
175 DWORD Protect = getWindowsProtectionFlags(Flags);
178 if (!VirtualProtect(M.Address, M.AllocatedSize, Protect, &OldFlags))
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
DMemory.inc132 DWORD Protect = getWindowsProtectionFlags(Flags);
136 AllocSize, AllocType, Protect);
175 DWORD Protect = getWindowsProtectionFlags(Flags);
178 if (!VirtualProtect(M.Address, M.AllocatedSize, Protect, &OldFlags))
/external/google-breakpad/src/client/mac/handler/
Dprotected_memory_allocator.h73 kern_return_t Protect();
Dprotected_memory_allocator.cc73 kern_return_t ProtectedMemoryAllocator::Protect() { in Protect() function in ProtectedMemoryAllocator
Dexception_handler.cc549 gBreakpadAllocator->Protect(); in WaitForMessage()
594 gBreakpadAllocator->Protect(); in WaitForMessage()
631 gBreakpadAllocator->Protect(); in SignalHandler()
/external/llvm-project/compiler-rt/lib/builtins/
Denable_execute_stack.c48 &mbi.Protect); in __enable_execute_stack()
/external/compiler-rt/lib/builtins/
Denable_execute_stack.c54 VirtualProtect (mbi.BaseAddress, mbi.RegionSize, PAGE_EXECUTE_READWRITE, &mbi.Protect); in __enable_execute_stack()
/external/compiler-rt/test/builtins/Unit/
Denable_execute_stack_test.c27 if (!VirtualProtect(b.BaseAddress, b.RegionSize, PAGE_EXECUTE_READWRITE, &b.Protect)) in __enable_execute_stack()
Dclear_cache_test.c66 if (!VirtualProtect(b.BaseAddress, b.RegionSize, PAGE_EXECUTE_READWRITE, &b.Protect)) in main()
/external/llvm/lib/Support/Unix/
DMemory.inc111 int Protect = getPosixProtectionFlags(PFlags);
120 Protect, MMFlags, fd, 0);
162 int Protect = getPosixProtectionFlags(Flags);
164 …t((void*)((uintptr_t)M.Address & ~(PageSize-1)), PageSize*((M.Size+PageSize-1)/PageSize), Protect);
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DMemory.inc103 int Protect = getPosixProtectionFlags(PFlags);
112 Protect, MMFlags, fd, 0);
154 int Protect = getPosixProtectionFlags(Flags);
158 int Result = ::mprotect((void *)Start, End - Start, Protect);
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_win.cc249 return mbi.Protect == PAGE_NOACCESS && in MemoryRangeIsAvailable()
801 if (info.Protect == 0 || info.Protect == PAGE_NOACCESS || in IsAccessibleMemoryRange()
802 info.Protect == PAGE_EXECUTE) in IsAccessibleMemoryRange()
/external/llvm-project/lldb/source/Plugins/Process/Windows/Common/
DProcessDebugger.cpp432 const bool readable = IsPageReadable(mem_info.Protect); in GetMemoryRegionInfo()
433 const bool executable = IsPageExecutable(mem_info.Protect); in GetMemoryRegionInfo()
434 const bool writable = IsPageWritable(mem_info.Protect); in GetMemoryRegionInfo()
/external/pdfium/third_party/lcms/
DREADME.pdfium28 0033-opt-integer-overflow.patch: Protect against integer overflow.
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_win.cpp392 return mbi.Protect == PAGE_NOACCESS && in MemoryRangeIsAvailable()
926 if (info.Protect == 0 || info.Protect == PAGE_NOACCESS || in IsAccessibleMemoryRange()
927 info.Protect == PAGE_EXECUTE) in IsAccessibleMemoryRange()
/external/kmod/
DTODO10 * Protect index against OOM
/external/expat/cmake/
Dexpat-config.cmake.in31 # Protect against multiple inclusion
/external/google-breakpad/src/client/ios/
Dexception_handler_no_mach.cc195 gBreakpadAllocator->Protect(); in SignalHandler()
/external/expat/cmake/autotools/
Dexpat.cmake15 # Protect against multiple inclusion, which would fail when already imported targets are added once…
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DMinidumpYAML.cpp121 IO &IO, MemoryProtection &Protect) { in bitset() argument
123 IO.bitSetCase(Protect, #NATIVENAME, MemoryProtection::NAME); in bitset()
253 mapOptionalAs<MemoryProtection>(IO, "Protect", Info.Protect, in mapping()
/external/llvm-project/llvm/lib/ObjectYAML/
DMinidumpYAML.cpp121 IO &IO, MemoryProtection &Protect) { in bitset() argument
123 IO.bitSetCase(Protect, #NATIVENAME, MemoryProtection::NAME); in bitset()
253 mapOptionalAs<MemoryProtection>(IO, "Protect", Info.Protect, in mapping()

1234