forked from OSchip/llvm-project
[msan] Respect no_huge_pages_for_shadow.
Disable huge pages in the MSan shadow region when no_huge_pages_for_shadow == true (default). Differential Revision: https://reviews.llvm.org/D85061
This commit is contained in:
parent
8dd4e3ceb8
commit
dc3388b020
|
@ -142,7 +142,7 @@ bool InitShadow(bool init_origins) {
|
|||
if (map) {
|
||||
if (!CheckMemoryRangeAvailability(start, size))
|
||||
return false;
|
||||
if (!MmapFixedNoReserve(start, size, kMemoryLayout[i].name))
|
||||
if (!MmapFixedSuperNoReserve(start, size, kMemoryLayout[i].name))
|
||||
return false;
|
||||
if (common_flags()->use_madv_dontdump)
|
||||
DontDumpShadowMemory(start, size);
|
||||
|
|
Loading…
Reference in New Issue