[Webkit-unassigned] [Bug 94810] Vector::shrinkToFit should use realloc when canCopyWithMemcpy is true

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 23 12:22:19 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=94810





--- Comment #4 from Yong Li <yoli at rim.com>  2012-08-23 12:22:17 PST ---
(In reply to comment #3)
> I think that at least OS X man page for realloc implies that it cannot move the allocation when shrinking.

Hm... good to know. For large blocks, the memory allocator can decommit/munmap the free space. For small blocks, probably we don't care that much?

Also StringBuilder/StringImpl is using fastRealloc to shrink memory anyway.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list