Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Issue 959803004: ProxyResolverMac: invalidate resolver source. (Closed)

Created:
5 years, 10 months ago by Elly Fong-Jones
Modified:
5 years, 10 months ago
Reviewers:
Robert Sesek, davidben
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ProxyResolverMac: invalidate resolver source. Instead of calling CFRunLoopRemoveSource, call CFRunLoopSourceInvalidate. Since the runloop is bound to the thread and threads are reused between resolutions, if the internals of the proxy resolver create any deferred tasks on the runloop, those tasks could refer to the removed-and-destroyed source when the runloop is next run. Instead, we call Invalidate, which should prevent any deferred tasks from running. BUG=166387 Committed: https://crrev.com/824907ba81b615ccbbc35c51bc9b937f3d99a5f2 Cr-Commit-Position: refs/heads/master@{#318233}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M net/proxy/proxy_resolver_mac.cc View 1 chunk +1 line, -2 lines 2 comments Download

Messages

Total messages: 10 (2 generated)
Elly Fong-Jones
rsesek: PTAL? davidben: net owner review :)
5 years, 10 months ago (2015-02-25 22:15:35 UTC) #2
davidben
Disclaimer: I don't know anything about OS X and CFRunLoop. Do we not want these ...
5 years, 10 months ago (2015-02-25 22:38:38 UTC) #3
davidben
https://codereview.chromium.org/959803004/diff/1/net/proxy/proxy_resolver_mac.cc File net/proxy/proxy_resolver_mac.cc (right): https://codereview.chromium.org/959803004/diff/1/net/proxy/proxy_resolver_mac.cc#newcode107 net/proxy/proxy_resolver_mac.cc:107: // runloop source we need to release despite its ...
5 years, 10 months ago (2015-02-25 22:41:25 UTC) #4
davidben
Elly and I chatted out of band. The async thing is potentially an optimization we ...
5 years, 10 months ago (2015-02-25 23:11:20 UTC) #5
Robert Sesek
LGTM On 2015/02/25 23:11:20, David Benjamin wrote: > In fact they RemoveSource /and/ Invalidate. That's ...
5 years, 10 months ago (2015-02-25 23:35:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/959803004/1
5 years, 10 months ago (2015-02-26 14:56:06 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-26 15:28:53 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-26 15:29:39 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/824907ba81b615ccbbc35c51bc9b937f3d99a5f2
Cr-Commit-Position: refs/heads/master@{#318233}

Powered by Google App Engine
This is Rietveld 408576698