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

Issue 1948543004: Switch WTF::find on LChar to use memchr. (Closed)

Created:
4 years, 7 months ago by jbroman
Modified:
4 years, 6 months ago
Reviewers:
Nico
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, danakj, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch WTF::find on LChar to use memchr. BUG=607208 Committed: https://crrev.com/c9f9af30569ac2cd353e234f569052db6ab436f4 Cr-Commit-Position: refs/heads/master@{#397568}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M third_party/WebKit/Source/wtf/text/StringImpl.h View 3 chunks +15 lines, -2 lines 4 comments Download

Messages

Total messages: 19 (4 generated)
jbroman
The slowness referred to in bug 605080 is caused by the loop in this WTF::find ...
4 years, 7 months ago (2016-05-04 17:14:41 UTC) #2
jbroman
ping
4 years, 7 months ago (2016-05-10 17:38:54 UTC) #3
Nico
sorry. BUG=607208, right? memchr will be a call. For longer strings, this should be faster, ...
4 years, 7 months ago (2016-05-10 17:47:06 UTC) #4
jbroman
On 2016/05/10 at 17:47:06, thakis wrote: > sorry. > > BUG=607208, right? Sure. > memchr ...
4 years, 7 months ago (2016-05-10 23:45:50 UTC) #6
Nico
(you didn't reply to the in-code comments) On Tue, May 10, 2016 at 7:45 PM, ...
4 years, 7 months ago (2016-05-11 12:32:30 UTC) #7
Nico
(you didn't reply to the in-code comments) On Tue, May 10, 2016 at 7:45 PM, ...
4 years, 7 months ago (2016-05-11 12:32:31 UTC) #8
jbroman
Sorry -- I wrote replies, but forgot that "reply" doesn't publish drafts. :( https://codereview.chromium.org/1948543004/diff/1/third_party/WebKit/Source/wtf/text/StringImpl.h File ...
4 years, 7 months ago (2016-05-11 17:19:32 UTC) #9
jbroman
ping?
4 years, 7 months ago (2016-05-18 15:04:44 UTC) #10
jbroman
ping?
4 years, 6 months ago (2016-05-27 15:03:39 UTC) #11
Nico
lgtm Sorry, this fell out my inbox somehow.
4 years, 6 months ago (2016-06-02 21:05:04 UTC) #12
jbroman
/me crosses his fingers
4 years, 6 months ago (2016-06-02 21:07:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948543004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948543004/1
4 years, 6 months ago (2016-06-02 21:08:24 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-03 00:53:39 UTC) #16
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/c9f9af30569ac2cd353e234f569052db6ab436f4 Cr-Commit-Position: refs/heads/master@{#397568}
4 years, 6 months ago (2016-06-03 00:55:22 UTC) #18
fs
4 years, 6 months ago (2016-06-03 08:23:04 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2036993002/ by fs@opera.com.

The reason for reverting is: LSAN and MSAN bots appear unhappy:

http/tests/media/media-source/mediasource-is-type-supported.html

crash log for renderer (pid <unknown>):
STDOUT: <empty>
STDERR: =================================================================
STDERR: ==4==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x6030000982af at pc 0x00000045811f bp 0x7fff2f309830 sp 0x7fff2f308fe0
STDERR: READ of size 5006 at 0x6030000982af thread T0 (content_shell)
STDERR:     #0 0x45811e in memchr ??:0
STDERR:     #1 0x3c5c419 in find
third_party/WebKit/Source/wtf/text/StringImpl.h:532:9
STDERR:     #2 0x3c5c419 in find
third_party/WebKit/Source/wtf/text/StringImpl.h:660:0
STDERR:     #3 0x3c5c419 in find
third_party/WebKit/Source/wtf/text/WTFString.h:214:0
STDERR:     #4 0x3c5c419 in find
third_party/WebKit/Source/wtf/text/WTFString.h:215:0
STDERR:     #5 0x3c5c419 in parameter
third_party/WebKit/Source/platform/ContentType.cpp:50:0
STDERR:     #6 0x8d64b7d in isTypeSupported
third_party/WebKit/Source/modules/mediasource/MediaSource.cpp:244:33
STDERR:     #7 0x9251198 in isTypeSupportedMethod
./out/Release/gen/blink/bindings/modules/v8/V8MediaSource.cpp:234:32
STDERR:     #8 0x9251198 in isTypeSupportedMethodCallback
./out/Release/gen/blink/bindings/modules/v8/V8MediaSource.cpp:239:0
STDERR:     #9 0x444b759 in Call v8/src/api-arguments.cc:16:3

(https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Linux_ASA...).

Powered by Google App Engine
This is Rietveld 408576698