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

Issue 1509953005: re2: Initialize sparse_to_dense_ on initial allocation under Valgrind. (Closed)

Created:
5 years ago by Reilly Grant (use Gerrit)
Modified:
5 years ago
Reviewers:
Nico
CC:
chromium-reviews, glider+watch_chromium.org, bruening+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

re2: Initialize sparse_to_dense_ on initial allocation under Valgrind. This change moves logic to appease Valgrind by initializing |a| out of the sparse_to_dense_ NULL check so that it is also run when the default SparseArray() constructor was used, leaving sparse_to_dense_ NULL before the first call to resize. This was caught by Valgrind, Dr. Memory and MSan. BUG=568373 R=thakis@chromium.org Committed: https://crrev.com/7e7706ee201acbd7e4784fbd6f8821f6647b624c Cr-Commit-Position: refs/heads/master@{#364292}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -5 lines) Patch
M third_party/re2/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/re2/patches/sparse-array-valgrind.patch View 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/re2/util/sparse_array.h View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Reilly Grant (use Gerrit)
Please take a look at this patch.
5 years ago (2015-12-10 00:55:05 UTC) #1
Nico
There's no bug link with a valgrind stack explaining what exactly's going on – but ...
5 years ago (2015-12-10 01:05:39 UTC) #2
Reilly Grant (use Gerrit)
On 2015/12/10 01:05:39, Nico wrote: > There's no bug link with a valgrind stack explaining ...
5 years ago (2015-12-10 01:14:52 UTC) #4
Nico
lgtm, please say "msan" somewhere in the cl description, and please send this upstream too.
5 years ago (2015-12-10 01:28:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1509953005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1509953005/1
5 years ago (2015-12-10 01:44:23 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-10 06:05:14 UTC) #10
commit-bot: I haz the power
5 years ago (2015-12-10 06:06:14 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7e7706ee201acbd7e4784fbd6f8821f6647b624c
Cr-Commit-Position: refs/heads/master@{#364292}

Powered by Google App Engine
This is Rietveld 408576698