Introduce a Vector::isolatedCopy() &&. This is for instance used in RegistrationDatabase.
Created attachment 405993 [details] Patch
Comment on attachment 405993 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405993&action=review > Source/WTF/ChangeLog:9 > + This can make a Vector<String>::isolatedCopy() allocate no memory at all in cases like RegistrationDatabase::schedulePushChanges. Can we change this at the same time?
Comment on attachment 405993 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405993&action=review >> Source/WTF/ChangeLog:9 >> + This can make a Vector<String>::isolatedCopy() allocate no memory at all in cases like RegistrationDatabase::schedulePushChanges. > > Can we change this at the same time? RegistrationDatabase::schedulePushChanges already does WTFMove(vector).isolatedCopy()
Committed r265369: <https://trac.webkit.org/changeset/265369> All reviewed patches have been landed. Closing bug and clearing flags on attachment 405993 [details].
<rdar://problem/66674326>
Looks good!