PROF_EVENT(10);
/* Mark all bytes as invalid access and invalid value. */
-
- /* It just happens that a AcSecMap occupies exactly 18 pages --
- although this isn't important, so the following assert is
- spurious. */
- sk_assert(0 == (sizeof(AcSecMap) % VKI_BYTES_PER_PAGE));
map = (AcSecMap *)VG_(shadow_alloc)(sizeof(AcSecMap));
-
for (i = 0; i < 8192; i++)
map->abits[i] = VGM_BYTE_INVALID; /* Invalid address */
UInt i;
//PROF_EVENT(10); PPP
- /* It just happens that a SecMap occupies exactly 18 pages --
- although this isn't important, so the following assert is
- spurious. (SSS: not true for ESecMaps -- they're 16 pages) */
- sk_assert(0 == (sizeof(ESecMap) % VKI_BYTES_PER_PAGE));
+ // Mark all words as virgin.
map = (ESecMap *)VG_(shadow_alloc)(sizeof(ESecMap));
-
for (i = 0; i < ESEC_MAP_WORDS; i++)
map->swords[i] = virgin_sword;
PROF_EVENT(10);
/* Mark all bytes as invalid access and invalid value. */
-
- /* It just happens that a SecMap occupies exactly 18 pages --
- although this isn't important, so the following assert is
- spurious. */
- sk_assert(0 == (sizeof(SecMap) % VKI_BYTES_PER_PAGE));
map = (SecMap *)VG_(shadow_alloc)(sizeof(SecMap));
for (i = 0; i < 8192; i++)