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

Issue 2088333003: Make IdentifiersFactory thread-safe (Closed)

Created:
4 years, 6 months ago by Kunihiko Sakamoto
Modified:
4 years, 6 months ago
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make IdentifiersFactory thread-safe IdentifiersFactory can be used not only from main thread but also from ScriptStreamer thread, so it should not hold process ID prefix as thread-unsafe WTF::String. This fixes crash when devtools.timeline tracing is enabled. This patch also makes s_lastUsedIdentifier increment atomically. BUG=621473, 612282 Committed: https://crrev.com/0751df2ff806e1ed303c2f652a090057d6768ba1 Cr-Commit-Position: refs/heads/master@{#401778}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Atomically increment s_lastUsedIdentifier #

Patch Set 3 : long -> int #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -26 lines) Patch
M third_party/WebKit/Source/core/inspector/IdentifiersFactory.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp View 1 2 2 chunks +16 lines, -25 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Kunihiko Sakamoto
PTAL
4 years, 6 months ago (2016-06-23 10:17:01 UTC) #3
alph
caseq is on vacation. lgtm
4 years, 6 months ago (2016-06-23 17:15:40 UTC) #5
dgozman
https://codereview.chromium.org/2088333003/diff/1/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp File third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp (right): https://codereview.chromium.org/2088333003/diff/1/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp#newcode40 third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp:40: static long s_lastUsedIdentifier = 0; Don't you have to ...
4 years, 6 months ago (2016-06-23 17:20:52 UTC) #6
Kunihiko Sakamoto
https://codereview.chromium.org/2088333003/diff/1/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp File third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp (right): https://codereview.chromium.org/2088333003/diff/1/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp#newcode40 third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp:40: static long s_lastUsedIdentifier = 0; On 2016/06/23 17:20:51, dgozman ...
4 years, 6 months ago (2016-06-24 00:00:18 UTC) #7
kouhei (in TOK)
lgtm
4 years, 6 months ago (2016-06-24 00:49:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088333003/40001
4 years, 6 months ago (2016-06-24 01:04:44 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-24 01:48:32 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 01:50:26 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0751df2ff806e1ed303c2f652a090057d6768ba1
Cr-Commit-Position: refs/heads/master@{#401778}

Powered by Google App Engine
This is Rietveld 408576698