glue_core_pools.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. # glue_core_pools was partially removed in:
  2. # https://chromium-review.googlesource.com/c/chromium/src/+/5922801
  3. # This removes the remaining references needed to build
  4. --- a/base/allocator/partition_allocator/partition_alloc.gni
  5. +++ b/base/allocator/partition_allocator/partition_alloc.gni
  6. @@ -193,9 +193,6 @@ declare_args() {
  7. force_enable_raw_ptr_exclusion = false
  8. }
  9. -assert(!enable_pointer_compression_support || glue_core_pools,
  10. - "Pointer compression relies on core pools being contiguous.")
  11. -
  12. declare_args() {
  13. # We want to use RawPtrBackupRefImpl as the raw_ptr<> implementation
  14. # iff BRP support is enabled. However, for purpose of performance
  15. --- a/base/allocator/partition_allocator/src/partition_alloc/compressed_pointer.h
  16. +++ b/base/allocator/partition_allocator/src/partition_alloc/compressed_pointer.h
  17. @@ -16,9 +16,6 @@
  18. #if PA_BUILDFLAG(ENABLE_POINTER_COMPRESSION)
  19. -#if !PA_BUILDFLAG(GLUE_CORE_POOLS)
  20. -#error "Pointer compression only works with glued pools"
  21. -#endif
  22. #if PA_CONFIG(DYNAMICALLY_SELECT_POOL_SIZE)
  23. #error "Pointer compression currently supports constant pool size"
  24. #endif