Skip to content

Commit bb1456d

Browse files
committed
[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.
1 parent 27d0e14 commit bb1456d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void UnmapFromTo(uptr from, uptr to);
130130
// be aligned to the mmap granularity * 2^shadow_scale, or to
131131
// 2^min_shadow_base_alignment if that is larger. The returned address will
132132
// have max(2^min_shadow_base_alignment, mmap granularity) on the left, and
133-
// shadow_size_bytes bytes on the right, mapped no access.
133+
// shadow_size_bytes bytes on the right, which on linux is mapped no access.
134134
// The high_mem_end may be updated if the original shadow size doesn't fit.
135135
uptr MapDynamicShadow(uptr shadow_size_bytes, uptr shadow_scale,
136136
uptr min_shadow_base_alignment, uptr &high_mem_end);

0 commit comments

Comments
 (0)