[compiler-rt] bb1456d - [sanitizer] Fix comment (NFC)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 16:18:39 PDT 2020


Author: Teresa Johnson
Date: 2020-08-07T16:18:18-07:00
New Revision: bb1456decf5e09947dfe8eee47b9736de7cd7f47

URL: https://github.com/llvm/llvm-project/commit/bb1456decf5e09947dfe8eee47b9736de7cd7f47
DIFF: https://github.com/llvm/llvm-project/commit/bb1456decf5e09947dfe8eee47b9736de7cd7f47.diff

LOG: [sanitizer] Fix comment (NFC)

As pointed out in D85387, part of the comment for MapDynamicShadow
refactored to sanitizer_common in D83247 was incorrect for non-Linux
versions. Update the comment to reflect that.

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_common.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h
index bf6ca735fb0d..86e19d96e036 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h
@@ -130,7 +130,7 @@ void UnmapFromTo(uptr from, uptr to);
 // be aligned to the mmap granularity * 2^shadow_scale, or to
 // 2^min_shadow_base_alignment if that is larger. The returned address will
 // have max(2^min_shadow_base_alignment, mmap granularity) on the left, and
-// shadow_size_bytes bytes on the right, mapped no access.
+// shadow_size_bytes bytes on the right, which on linux is mapped no access.
 // The high_mem_end may be updated if the original shadow size doesn't fit.
 uptr MapDynamicShadow(uptr shadow_size_bytes, uptr shadow_scale,
                       uptr min_shadow_base_alignment, uptr &high_mem_end);


        


More information about the llvm-commits mailing list