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

Issue 467973003: Use an AtomicString as key in DocumentOrderedMap (Closed)

Created:
6 years, 4 months ago by Inactive
Modified:
6 years, 4 months ago
Reviewers:
Hajime Morrita, esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, inferno, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

Use an AtomicString as key in DocumentOrderedMap Use an AtomicString as key in DocumentOrderedMap instead of a StringImpl*. This is safer as the HashMap Traits rely on the StringImpl* to not be a dangling pointer (it is calling StringImpl::hash()). Using an AtomicString as key will make sure we don't experience use-after-free such as in Bug 402255. I ran Bindings/get-element-by-id.html test and did not see any performance regression. R=esprehn@chromium.org, morrita@chromium.org BUG=402255 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180365

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M Source/core/dom/DocumentOrderedMap.h View 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/dom/DocumentOrderedMap.cpp View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Inactive
6 years, 4 months ago (2014-08-13 01:35:34 UTC) #1
esprehn
lgtm
6 years, 4 months ago (2014-08-15 14:42:44 UTC) #2
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 4 months ago (2014-08-15 14:43:53 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/467973003/1
6 years, 4 months ago (2014-08-15 14:44:26 UTC) #4
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 15:36:59 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (1) as 180365

Powered by Google App Engine
This is Rietveld 408576698