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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 30 14:56:33 PDT 2012


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


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|95503                       |




--- Comment #40 from Darin Adler <darin at apple.com>  2012-08-30 14:56:39 PST ---
(In reply to comment #0)
> But I don't know why there are both canCopyWithMemcpy and canMoveWithMemcpy. Is there any case they are not equivalent?

Yes. A class like RefPtr can return true for canMoveWithMemcpy but must return false for canCopyWithMemcpy because a copy requires incrementing the reference count.

-- 
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