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

Issue 157393002: Prevent race between GC and interrupts from other threads. (Closed)

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

Description

Prevent race between GC and interrupts from other threads. R=svenpanne@chromium.org BUG=328804 LOG=N

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M src/heap.cc View 1 chunk +7 lines, -1 line 1 comment Download

Messages

Total messages: 3 (0 generated)
Yang
6 years, 10 months ago (2014-02-07 09:52:59 UTC) #1
Sven Panne
lgtm
6 years, 10 months ago (2014-02-07 09:53:51 UTC) #2
Michael Starzinger
6 years, 10 months ago (2014-02-07 10:24:50 UTC) #3
Not LGTM.

https://codereview.chromium.org/157393002/diff/1/src/heap.cc
File src/heap.cc (right):

https://codereview.chromium.org/157393002/diff/1/src/heap.cc#newcode6088
src/heap.cc:6088: ExecutionAccess access(isolate());
As discussed offline: This seems very much like a redundant lock to me. I know
the motivation is to make TSAN happy, but I have issues with taking a lock in
IterateStringRoots, especially for a field that is _always_ a SMI.

One suggestion from my end would be to reorder the strong roots list in a way
that groups SMIs at the end so that the GC doesn't need to look at them at all.

Powered by Google App Engine
This is Rietveld 408576698