Summary: | SharedBuffer m_segments and m_dataArray must be exclusive | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Benjamin Poulain <benjamin> | ||||||
Component: | Page Loading | Assignee: | Pratik Solanki <psolanki> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ddkilzer, psolanki | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Benjamin Poulain
2012-02-02 22:19:15 PST
Updating title. m_buffer is still needed even with data array. Also taking bug since I have a patch. Created attachment 176814 [details]
Patch
Created attachment 200453 [details]
Patch
Comment on attachment 200453 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=200453&action=review > Source/WebCore/platform/SharedBuffer.cpp:211 > + m_buffer.reserveInitialCapacity(length); I don't think that matters. The append() call has the size, it will allocate the best block size for the input. Comment on attachment 200453 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=200453&action=review >> Source/WebCore/platform/SharedBuffer.cpp:211 >> + m_buffer.reserveInitialCapacity(length); > > I don't think that matters. The append() call has the size, it will allocate the best block size for the input. That change was inspired by <http://trac.webkit.org/changeset/135098> made for bug 102625 Hmm.. Looks like I never checked this in. :( I am going to rebase the patch, make sure it works and maybe upload a new one for review. Looks like the patch compiles and runs fine with USE(NETWORK_CFDATA_ARRAY_CALLBACK) disabled. If it works fine with the flag turned on, I'll just go ahead and commit. Committed r154823: <http://trac.webkit.org/changeset/154823> |