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

Issue 240193002: Serializer enable/disable flags need thread safety. (Closed)

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

Description

Serializer enable/disable flags need thread safety. BUG= R=hpayer@chromium.org, svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=20855

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Setup and TearDown are controlled by V8::Initialize(). #

Total comments: 8

Patch Set 4 : ARM crazyness with printing flags. #

Patch Set 5 : Code comment response. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -72 lines) Patch
M src/arm/assembler-arm.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M src/arm/assembler-arm.cc View 1 2 3 5 chunks +20 lines, -12 lines 0 comments Download
M src/arm64/assembler-arm64.cc View 1 2 3 3 chunks +0 lines, -13 lines 0 comments Download
M src/flags.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/assembler-ia32.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M src/mips/assembler-mips.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/mksnapshot.cc View 1 2 3 3 chunks +11 lines, -1 line 0 comments Download
M src/serialize.h View 1 2 3 4 2 chunks +19 lines, -10 lines 0 comments Download
M src/serialize.cc View 1 2 3 4 2 chunks +32 lines, -15 lines 0 comments Download
M src/v8.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 5 chunks +0 lines, -5 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mvstanton
Hi Hannes, Here is the simplest fix for the 2nd TSAN violation. If performance tests ...
6 years, 8 months ago (2014-04-16 09:14:02 UTC) #1
Sven Panne
DBC https://codereview.chromium.org/240193002/diff/20001/src/arm/assembler-arm.cc File src/arm/assembler-arm.cc (right): https://codereview.chromium.org/240193002/diff/20001/src/arm/assembler-arm.cc#newcode1082 src/arm/assembler-arm.cc:1082: #ifdef DEBUG Why do we wrap this into ...
6 years, 8 months ago (2014-04-16 09:18:46 UTC) #2
mvstanton
Okay, this appears to make TSAN happy(ier), doesn't hurt performance, and constrains the serializer to ...
6 years, 8 months ago (2014-04-16 13:43:29 UTC) #3
Sven Panne
lgtm
6 years, 8 months ago (2014-04-17 09:07:34 UTC) #4
Hannes Payer (out of office)
https://codereview.chromium.org/240193002/diff/50001/src/serialize.cc File src/serialize.cc (right): https://codereview.chromium.org/240193002/diff/50001/src/serialize.cc#newcode652 src/serialize.cc:652: Atomic32 Serializer::serialization_state_ = SERIALIZER_STATE_UNINITIALIZED; AtomicWord https://codereview.chromium.org/240193002/diff/50001/src/serialize.cc#newcode777 src/serialize.cc:777: NoBarrier_Store(&serialization_state_, state); ...
6 years, 8 months ago (2014-04-17 09:48:10 UTC) #5
mvstanton
Hi Hannes, hi Sven, Hannes, I address your suggested changes, and Sven, here are the ...
6 years, 8 months ago (2014-04-17 14:18:29 UTC) #6
Hannes Payer (out of office)
LGTM from the synchronization side
6 years, 8 months ago (2014-04-17 14:23:41 UTC) #7
mvstanton
Thx, and Sven, I'll check in based on our detailed discussion on the ARM PrintFlags ...
6 years, 8 months ago (2014-04-17 14:35:18 UTC) #8
mvstanton
6 years, 8 months ago (2014-04-17 14:45:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 manually as r20855 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698