[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:
Evgenii Stepanov 2020-07-31 17:18:06 -07:00
parent 8dd4e3ceb8
commit dc3388b020
1 changed files with 1 additions and 1 deletions

View File

@ -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);