[PATCH] [ASan] Use less shadow on Win 32-bit

Kostya Serebryany kcc at google.com
Tue Jul 16 02:17:56 PDT 2013



================
Comment at: lib/asan/asan_rtl.cc:333
@@ +332,3 @@
+  // Make sure everything is properly aligned:
+  kHighMemEnd = kHighMemEnd | (GetPageSizeCached() - 1);
+  // Including the high-shadow beginning address...
----------------
kHighMemEnd |= (GetPageSizeCached() * SHADOW_SCALE - 1);

and remove the loop. 


http://llvm-reviews.chandlerc.com/D1139



More information about the llvm-commits mailing list