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

Issue 17294004: Fix data race in v8::internal::UnboundQueue (Closed)

Created:
7 years, 6 months ago by yurys
Modified:
7 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix data race in v8::internal::UnboundQueue This change modifies memory accesses to ensure proper load/store ordering. BUG=249750 R=dvyukov@google.com, jkummerow@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15219

Patch Set 1 #

Total comments: 2

Patch Set 2 : Dmitry's comments addressed: added NoBarrier_Load #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -14 lines) Patch
M src/cpu-profiler.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M src/optimizing-compiler-thread.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M src/unbound-queue.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/unbound-queue-inl.h View 1 2 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
yurys
7 years, 6 months ago (2013-06-17 18:40:38 UTC) #1
yurys
7 years, 6 months ago (2013-06-17 18:41:32 UTC) #2
Dmitry Vyukov
LGTM https://codereview.chromium.org/17294004/diff/1/src/unbound-queue.h File src/unbound-queue.h (right): https://codereview.chromium.org/17294004/diff/1/src/unbound-queue.h#newcode51 src/unbound-queue.h:51: INLINE(bool IsEmpty()) { return divider_ == last_; } ...
7 years, 6 months ago (2013-06-17 19:51:57 UTC) #3
Dmitry Vyukov
FYI, there is also an intrusive spsc queue algorithm: https://groups.google.com/forum/?hl=ru&fromgroups#!topic/comp.programming.threads/AsNwCD5lgAA But in general I think ...
7 years, 6 months ago (2013-06-17 19:54:33 UTC) #4
yurys
Thank you for review! One question: am I right that these particular data races should ...
7 years, 6 months ago (2013-06-18 08:01:00 UTC) #5
Jakob Kummerow
lgtm
7 years, 6 months ago (2013-06-18 08:29:57 UTC) #6
Dmitry Vyukov
On 2013/06/18 08:01:00, Yury Semikhatsky wrote: > Thank you for review! One question: am I ...
7 years, 6 months ago (2013-06-18 09:17:59 UTC) #7
yurys
On 2013/06/18 09:17:59, Dmitry Vyukov wrote: > On 2013/06/18 08:01:00, Yury Semikhatsky wrote: > > ...
7 years, 6 months ago (2013-06-18 10:19:55 UTC) #8
Alexander Potapenko
This patch doesn't apply to the bleeding edge branch. Looking at https://code.google.com/p/v8/source/browse/branches/bleeding_edge/src/unbound-queue-inl.h I see that ...
7 years, 6 months ago (2013-06-18 12:49:24 UTC) #9
yurys
On 2013/06/18 12:49:24, Alexander Potapenko wrote: > This patch doesn't apply to the bleeding edge ...
7 years, 6 months ago (2013-06-18 13:10:05 UTC) #10
Alexander Potapenko
> This patch depends on https://codereview.chromium.org/17222004/ Thanks for the info! I confirm that the race ...
7 years, 6 months ago (2013-06-18 14:25:49 UTC) #11
yurys
7 years, 6 months ago (2013-06-20 06:23:44 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 manually as r15219 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698