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

Issue 13686020: Make HTMLNames threadsafe (Closed)

Created:
7 years, 8 months ago by abarth-chromium
Modified:
7 years, 8 months ago
CC:
blink-reviews, Chris Evans
Visibility:
Public.

Description

Make HTMLNames threadsafe This CL makes the localNames for HTMLNames (and friends) threadsafe by making them static strings that are created at compile time. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148132

Patch Set 1 #

Patch Set 2 : Make it work #

Patch Set 3 : Remove extra assert #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -44 lines) Patch
M Source/WTF/wtf/text/AtomicString.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/WTF/wtf/text/StringImpl.h View 1 3 chunks +5 lines, -6 lines 2 comments Download
A + Source/WTF/wtf/text/StringStatics.h View 1 1 chunk +15 lines, -4 lines 3 comments Download
M Source/WTF/wtf/text/StringStatics.cpp View 2 chunks +25 lines, -14 lines 2 comments Download
M Source/WebCore/dom/QualifiedName.cpp View 1 1 chunk +6 lines, -7 lines 0 comments Download
M Source/WebCore/page/Frame.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/WebCore/page/Frame.cpp View 1 2 3 chunks +17 lines, -10 lines 2 comments Download
M Source/WebCore/scripts/StaticString.pm View 2 chunks +8 lines, -1 line 0 comments Download
M Source/WebKit/chromium/src/WebKit.cpp View 1 2 chunks +3 lines, -2 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
abarth-chromium
This is ready for review now!
7 years, 8 months ago (2013-04-10 20:48:01 UTC) #1
eseidel
lgtm. Please consider the nits below. Also CCing cevans since he's expressed interest in these ...
7 years, 8 months ago (2013-04-10 20:53:50 UTC) #2
abarth-chromium
https://codereview.chromium.org/13686020/diff/5001/Source/WTF/wtf/text/StringImpl.h File Source/WTF/wtf/text/StringImpl.h (right): https://codereview.chromium.org/13686020/diff/5001/Source/WTF/wtf/text/StringImpl.h#newcode722 Source/WTF/wtf/text/StringImpl.h:722: const UChar* m_copyData16; On 2013/04/10 20:53:50, Eric Seidel (Google) ...
7 years, 8 months ago (2013-04-10 21:00:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/13686020/5001
7 years, 8 months ago (2013-04-10 21:03:33 UTC) #4
eseidel
sgtm
7 years, 8 months ago (2013-04-10 21:03:40 UTC) #5
commit-bot: I haz the power
Presubmit check for 13686020-5001 failed and returned exit status -2001. The presubmit check was hung. ...
7 years, 8 months ago (2013-04-10 21:09:39 UTC) #6
abarth-chromium
Committed patchset #3 manually as r148132 (presubmit successful).
7 years, 8 months ago (2013-04-11 01:26:37 UTC) #7
darin (slow to review)
7 years, 8 months ago (2013-04-11 07:02:24 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/13686020/diff/5001/Source/WTF/wtf/text/String...
File Source/WTF/wtf/text/StringStatics.h (left):

https://codereview.chromium.org/13686020/diff/5001/Source/WTF/wtf/text/String...
Source/WTF/wtf/text/StringStatics.h:33: ] interface StorageQuotaCallback {
On 2013/04/10 21:00:51, abarth wrote:
> On 2013/04/10 20:53:50, Eric Seidel (Google) wrote:
> > I love how rietveld picks a random file to compare against when adding new
> > files. :)
> 
> Yeah, I'm not sure if it's rietveld or git.

I believe this is a side-effect of the similarity thinger tuned to aggressively
try to catch the equivalent of a "svn cp" when your using git.  This was done to
help preserve history in svn.  We could probably come up with a heuristic that
would cause this one to be treated like a new file addition.  @maruel would be
the guy to talk to IIRC.

Powered by Google App Engine
This is Rietveld 408576698