Add some comments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4548 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/addrcheck/ac_main.c b/addrcheck/ac_main.c
index db05274..221440e 100644
--- a/addrcheck/ac_main.c
+++ b/addrcheck/ac_main.c
@@ -707,6 +707,7 @@
abits >>= (a & 4);
abits &= 15;
PROF_EVENT(66, "");
+ // XXX: Should this be "if (!is_distinguished_sm(sm) && abits == VGM_NIBBLE_VALID)"?
if (abits == VGM_NIBBLE_VALID) {
/* Handle common case quickly: a is suitably aligned, is mapped,
and is addressible. So just return. */
@@ -727,6 +728,7 @@
AcSecMap* sm = primary_map[sec_no];
UInt a_off = (SM_OFF(a)) >> 3;
PROF_EVENT(67, "");
+ // XXX: Should this be "if (!is_distinguished_sm(sm) && sm->abits[a_off] == VGM_BYTE_VALID)"?
if (sm->abits[a_off] == VGM_BYTE_VALID) {
/* Handle common case quickly. */
return;
@@ -746,6 +748,7 @@
AcSecMap* sm = primary_map[sec_no];
UInt a_off = (SM_OFF(a)) >> 3;
PROF_EVENT(68, "");
+ // XXX: Should this be "if (!is_distinguished_sm(sm) && sm->abits[a_off] == VGM_BYTE_VALID)"?
if (sm->abits[a_off] == VGM_BYTE_VALID) {
/* Handle common case quickly. */
return;