Bug 234622 - SharedBuffer::copy() should return a contiguous SharedBuffer
Summary: SharedBuffer::copy() should return a contiguous SharedBuffer
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-22 16:14 PST by Jean-Yves Avenard [:jya]
Modified: 2022-01-01 16:10 PST (History)
2 users (show)

See Also:


Attachments
Patch (3.27 KB, patch)
2021-12-22 17:01 PST, Jean-Yves Avenard [:jya]
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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].