WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
138174
Eliminate ResourceBuffer and use SharedBuffer directly instead
https://bugs.webkit.org/show_bug.cgi?id=138174
Summary
Eliminate ResourceBuffer and use SharedBuffer directly instead
Darin Adler
Reported
2014-10-29 08:28:52 PDT
Eliminate ResourceBuffer and use SharedBuffer directly instead
Attachments
Patch
(149.23 KB, patch)
2014-10-29 09:49 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(149.80 KB, patch)
2014-10-30 08:46 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(155.49 KB, patch)
2014-10-30 09:08 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(109.25 KB, patch)
2014-10-30 09:43 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(156.43 KB, patch)
2014-10-30 19:31 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2014-10-29 09:49:45 PDT
Created
attachment 240607
[details]
Patch
Darin Adler
Comment 2
2014-10-29 09:57:05 PDT
Looks like I didn’t update the EFL build system to remove the reference to ResourceBuffer.
Darin Adler
Comment 3
2014-10-29 09:57:28 PDT
Still interested in review of this first cut, though.
Antti Koivisto
Comment 4
2014-10-29 11:58:14 PDT
Comment on
attachment 240607
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=240607&action=review
> Source/WebCore/loader/cache/CachedResource.h:361 > +class CachedResource::Callback { > +public: > + Callback(CachedResource&, CachedResourceClient&); > + > + void cancel(); > + > +private: > + void timerFired(Timer<Callback>&); > + > + CachedResource& m_resource; > + CachedResourceClient& m_client; > + Timer<Callback> m_timer; > +};
You could probably remove this awkward type and use a lambda.
Darin Adler
Comment 5
2014-10-29 20:20:46 PDT
Comment on
attachment 240607
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=240607&action=review
>> Source/WebCore/loader/cache/CachedResource.h:361 >> +}; > > You could probably remove this awkward type and use a lambda.
Good direction; but for the moment, not sure how to use a lambda with a Timer since there’s no std::function version yet.
Darin Adler
Comment 6
2014-10-30 08:46:57 PDT
Created
attachment 240673
[details]
Patch
Darin Adler
Comment 7
2014-10-30 09:08:32 PDT
Created
attachment 240675
[details]
Patch
Darin Adler
Comment 8
2014-10-30 09:43:09 PDT
Created
attachment 240679
[details]
Patch
Darin Adler
Comment 9
2014-10-30 19:31:28 PDT
Created
attachment 240721
[details]
Patch
Darin Adler
Comment 10
2014-10-30 21:25:29 PDT
Committed
r175406
: <
http://trac.webkit.org/changeset/175406
>
Csaba Osztrogonác
Comment 11
2014-10-31 05:06:14 PDT
(In reply to
comment #10
)
> Committed
r175406
: <
http://trac.webkit.org/changeset/175406
>
It made 15 tests crash on Apple's debug bots.
Antti Koivisto
Comment 12
2014-10-31 14:10:05 PDT
Looking
Antti Koivisto
Comment 13
2014-10-31 14:14:46 PDT
http://trac.webkit.org/changeset/175423
should help
Alexey Proskuryakov
Comment 14
2014-11-03 11:36:12 PST
Some tests are still broken after this change.
https://build.webkit.org/results/Apple%20Yosemite%20Debug%20WK1%20(Tests)/r175469%20(258)/results.html
Alexey Proskuryakov
Comment 15
2014-11-03 11:45:54 PST
CRASHING TEST:/multipart/stop-crash.html Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.JavaScriptCore 0x000000010d817bfa WTFCrash + 42 1 com.apple.WebCore 0x000000010f0ce16e WTF::PassRef<WebCore::SharedBuffer>::~PassRef() + 62 (PassRef.h:102) 2 com.apple.WebCore 0x000000010f0cda15 WTF::PassRef<WebCore::SharedBuffer>::~PassRef() + 21 (PassRef.h:103) 3 com.apple.WebCore 0x0000000110aa440c WebCore::SubresourceLoader::didReceiveResponse(WebCore::ResourceResponse const&) + 764 (SubresourceLoader.cpp:239) 4 com.apple.WebKit 0x000000010ac27a87 WebKit::WebResourceLoader::didReceiveResponse(WebCore::ResourceResponse const&, bool) + 311 (WebResourceLoader.cpp:129) 5 com.apple.WebKit 0x000000010ac2b6fa void IPC::callMemberFunctionImpl<WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool), std::__1::tuple<WebCore::ResourceResponse, bool>, 0ul, 1ul>(WebKit::WebResourceLoader*, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool), std::__1::tuple<WebCore::ResourceResponse, bool>&&, std::index_sequence<0ul, 1ul>) + 186 (HandleMessage.h:17)
WebKit Commit Bot
Comment 16
2014-11-03 14:20:25 PST
Re-opened since this is blocked by
bug 138327
Alexey Proskuryakov
Comment 17
2014-11-03 14:29:07 PST
Rolled out the patch and follow-up fixes in <
https://trac.webkit.org/r175491
>.
Darin Adler
Comment 18
2014-11-04 08:47:47 PST
Committed
r175549
: <
http://trac.webkit.org/changeset/175549
>
Darin Adler
Comment 19
2014-11-04 08:55:33 PST
Oops, one test still failing. Opening a new bug to fix that.
Andy Estes
Comment 20
2014-11-04 11:12:32 PST
Landed an iOS build fix:
http://trac.webkit.org/changeset/175552
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug