The comment explained why different tag is used after mremap, but
for that correctly tagged pointer should be passed to tag_new_usable.
Use chunk2mem to get the tag.
Reviewed-by: DJ Delorie <dj@redhat.com>
newp = mremap_chunk (oldp, nb);
if (newp)
{
- void *newmem = chunk2rawmem (newp);
+ void *newmem = chunk2mem (newp);
/* Give the new block a different tag. This helps to ensure
that stale handles to the previous mapping are not
reused. There's a performance hit for both us and the