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

Issue 5290011: Add a lock to the cookie accountant to prevent race conditions in patching... (Closed)

Created:
10 years ago by Cindy Lau
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ceee-reviews_chromium.org
Visibility:
Public.

Description

Add a lock to the cookie accountant to prevent race conditions in patching functions from different threads. BUG=64844 TEST=Run integration tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67926

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M ceee/ie/plugin/bho/cookie_accountant.h View 1 3 chunks +15 lines, -1 line 0 comments Download
M ceee/ie/plugin/bho/cookie_accountant.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Cindy Lau
10 years ago (2010-11-30 22:09:20 UTC) #1
MAD
http://codereview.chromium.org/5290011/diff/1/ceee/ie/plugin/bho/cookie_accountant.cc File ceee/ie/plugin/bho/cookie_accountant.cc (right): http://codereview.chromium.org/5290011/diff/1/ceee/ie/plugin/bho/cookie_accountant.cc#newcode38 ceee/ie/plugin/bho/cookie_accountant.cc:38: AutoLock lock(lock_); I don't think a lock is necessary ...
10 years ago (2010-11-30 22:35:55 UTC) #2
Cindy Lau
http://codereview.chromium.org/5290011/diff/1/ceee/ie/plugin/bho/cookie_accountant.cc File ceee/ie/plugin/bho/cookie_accountant.cc (right): http://codereview.chromium.org/5290011/diff/1/ceee/ie/plugin/bho/cookie_accountant.cc#newcode38 ceee/ie/plugin/bho/cookie_accountant.cc:38: AutoLock lock(lock_); On 2010/11/30 22:35:55, MAD wrote: > I ...
10 years ago (2010-12-01 01:33:15 UTC) #3
MAD
Getting closer... :-) A suggestion below... BYE MAD http://codereview.chromium.org/5290011/diff/1/ceee/ie/plugin/bho/cookie_accountant.cc File ceee/ie/plugin/bho/cookie_accountant.cc (right): http://codereview.chromium.org/5290011/diff/1/ceee/ie/plugin/bho/cookie_accountant.cc#newcode226 ceee/ie/plugin/bho/cookie_accountant.cc:226: AutoLock ...
10 years ago (2010-12-01 02:14:43 UTC) #4
Sigurður Ásgeirsson
drive-by http://codereview.chromium.org/5290011/diff/1/ceee/ie/plugin/bho/cookie_accountant.cc File ceee/ie/plugin/bho/cookie_accountant.cc (right): http://codereview.chromium.org/5290011/diff/1/ceee/ie/plugin/bho/cookie_accountant.cc#newcode226 ceee/ie/plugin/bho/cookie_accountant.cc:226: AutoLock lock(lock_); On 2010/12/01 02:14:43, MAD wrote: > ...
10 years ago (2010-12-01 14:36:40 UTC) #5
MAD
OK, then, based on Siggi's comments... LGTM! We can keep it as is... Thanks! BYE ...
10 years ago (2010-12-01 14:55:38 UTC) #6
Sigurður Ásgeirsson
10 years ago (2010-12-01 15:01:11 UTC) #7
Also, after re-reading the rewritten vtable patching code and a discussion
with MAD, we've come to the realization that increasing concurrency here is
really bad, because there's a race on the VM operations (which happen to be
serializing).

On Wed, Dec 1, 2010 at 9:55 AM, <mad@chromium.org> wrote:

> OK, then, based on Siggi's comments... LGTM!
>
> We can keep it as is...
>
> Thanks!
>
> BYE
> MAD
>
>
>
> http://codereview.chromium.org/5290011/
>

Powered by Google App Engine
This is Rietveld 408576698