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

Unified Diff: third_party/re2/patches/sparse-array-valgrind.patch

Issue 1516543002: Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update instructions Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/re2/patches/sparse-array-valgrind.patch
diff --git a/third_party/re2/patches/sparse-array-valgrind.patch b/third_party/re2/patches/sparse-array-valgrind.patch
deleted file mode 100644
index e2cf0bd35256d97cdcf7714d2884c521f5daf0e1..0000000000000000000000000000000000000000
--- a/third_party/re2/patches/sparse-array-valgrind.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff --git a/third_party/re2/util/sparse_array.h b/third_party/re2/util/sparse_array.h
-index 4ee5c94..7bc3a86 100644
---- a/third_party/re2/util/sparse_array.h
-+++ b/third_party/re2/util/sparse_array.h
-@@ -273,13 +273,13 @@ void SparseArray<Value>::resize(int new_max_size) {
- int* a = new int[new_max_size];
- if (sparse_to_dense_) {
- memmove(a, sparse_to_dense_, max_size_*sizeof a[0]);
-- // Don't need to zero the memory but appease Valgrind.
-- if (valgrind_) {
-- for (int i = max_size_; i < new_max_size; i++)
-- a[i] = 0xababababU;
-- }
- delete[] sparse_to_dense_;
- }
-+ // Don't need to zero the memory but appease Valgrind.
-+ if (valgrind_) {
-+ for (int i = max_size_; i < new_max_size; i++)
-+ a[i] = 0xababababU;
-+ }
- sparse_to_dense_ = a;
-
- dense_.resize(new_max_size);

Powered by Google App Engine
This is Rietveld 408576698