Roll base/allocator/partition_allocator/ 17c0ead1e..f61289829 (8 commits)

https://chromium.googlesource.com/chromium/src/base/allocator/partition_allocator.git/+log/17c0ead1e0f8..f61289829cf6

Bug: crbug.com/41481467
Change-Id: I40d5446af2f09547209cc2f32993599ade2720dd
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/119650
Reviewed-by: Thomas Sepez <tsepez@google.com>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
diff --git a/DEPS b/DEPS
index d193dde..2fd3c3d 100644
--- a/DEPS
+++ b/DEPS
@@ -166,7 +166,7 @@
   # Three lines of non-changing comments so that
   # the commit queue can handle CLs rolling partition_allocator
   # and whatever else without interference from each other.
-  'partition_allocator_revision': '17c0ead1e0f833dcc6717bfc65cd1eedb584de45',
+  'partition_allocator_revision': 'f61289829cf660d12cea7df1bf5a602c6e86be68',
   # Three lines of non-changing comments so that
   # the commit queue can handle CLs rolling pdfium_tests
   # and whatever else without interference from each other.
diff --git a/build_overrides/partition_alloc.gni b/build_overrides/partition_alloc.gni
index 521c6fa..ce4862d 100644
--- a/build_overrides/partition_alloc.gni
+++ b/build_overrides/partition_alloc.gni
@@ -2,9 +2,24 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
+import("//build/config/android/config.gni")
 import("//build/config/c++/c++.gni")
+import("//build/config/cast.gni")
+import("//build/config/chromeos/ui_mode.gni")
+import("//build/config/compiler/compiler.gni")
+import("//build/config/cronet/config.gni")
+import("//build/config/dcheck_always_on.gni")
+import("//build/config/logging.gni")
 import("//build/config/sanitizers/sanitizers.gni")
 
+partition_alloc_enable_arc_config = "//build/config/compiler:enable_arc"
+
+# partition_alloc is performance critical and it should generally be optimized
+# for speed so that pdfium developers aren't slowed down, even in Debug mode.
+partition_alloc_remove_configs =
+    [ "//build/config/compiler:default_optimization" ]
+partition_alloc_add_configs = [ "//build/config/compiler:optimize_speed" ]
+
 # Sanitizers replace the allocator, don't use our own allocator.
 _is_using_sanitizers = is_asan || is_hwasan || is_lsan || is_tsan || is_msan