return entNo;
}
-static void realloc_CEnt ( DiImage* img, UInt entNo, SizeT szB )
+static void realloc_CEnt ( DiImage* img, UInt entNo, SizeT szB, Bool fromC )
{
vg_assert(img != NULL);
- vg_assert(szB >= CACHE_ENTRY_SIZE);
+ vg_assert(fromC || szB >= CACHE_ENTRY_SIZE);
vg_assert(is_sane_CEnt("realloc_CEnt-pre", img, entNo));
img->ces[entNo] = ML_(dinfo_realloc)("di.realloc_CEnt.1",
img->ces[entNo],
}
vg_assert(i >= 0 && i < CACHE_N_ENTRIES);
- realloc_CEnt(img, i, size);
+ realloc_CEnt(img, i, size, /*fromC?*/cslc != NULL);
img->ces[i]->size = size;
img->ces[i]->used = 0;
if (cslc == NULL) {