Bug 234622

Summary: SharedBuffer::copy() should return a contiguous SharedBuffer
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: WebCore Misc.Assignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Jean-Yves Avenard [:jya] 2021-12-22 16:14:22 PST
Right now, when copying a SharedBuffer what is return is a FragmentedSharedBuffer; causing an unnecessry memory allocation when making it contiguous again.
Comment 1 Radar WebKit Bug Importer 2021-12-22 16:14:49 PST
<rdar://problem/86829527>
Comment 2 Jean-Yves Avenard [:jya] 2021-12-22 17:01:50 PST
Created attachment 447845 [details]
Patch
Comment 3 EWS 2022-01-01 16:10:27 PST
Committed r287506 (245641@main): <https://commits.webkit.org/245641@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 447845 [details].