WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
106713
[WK2] Network process unblocks all waiting threads when any sync reply arrives
https://bugs.webkit.org/show_bug.cgi?id=106713
Summary
[WK2] Network process unblocks all waiting threads when any sync reply arrives
Alexey Proskuryakov
Reported
2013-01-11 15:41:15 PST
BlockingResourceMap has a single ThreadCondition, and wakes up all waiting loader threads. This does not have to be so inefficient. <
rdar://problem/12886430
>
Attachments
proposed patch
(18.46 KB, patch)
2013-01-11 15:47 PST
,
Alexey Proskuryakov
beidson
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2013-01-11 15:47:31 PST
Created
attachment 182437
[details]
proposed patch
Brady Eidson
Comment 2
2013-01-11 15:55:09 PST
Comment on
attachment 182437
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=182437&action=review
> Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp:190 > - if (!send(Messages::WebResourceLoader::WillSendRequest(requestID, request, redirectResponse))) { > + if (!sendSync(Messages::WebResourceLoader::WillSendRequest(request, redirectResponse), Messages::WebResourceLoader::WillSendRequest::Reply(request)))
If the premise is that it's okay to make this a sync message because it's *always* on a background thread, please ASSERT to that effect.
> Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp:288 > - if (!send(Messages::WebResourceLoader::CanAuthenticateAgainstProtectionSpace(requestID, protectionSpace))) > + bool result; > + if (!sendSync(Messages::WebResourceLoader::CanAuthenticateAgainstProtectionSpace(protectionSpace), Messages::WebResourceLoader::CanAuthenticateAgainstProtectionSpace::Reply(result)))
If the premise is that it's okay to make this a sync message because it's *always* on a background thread, please ASSERT to that effect.
Alexey Proskuryakov
Comment 3
2013-01-11 16:10:05 PST
Good point. Committed <
http://trac.webkit.org/r139516
>.
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