Commit ef86ad5a authored by Anton Bikineev's avatar Anton Bikineev Committed by Chromium LUCI CQ

PartitionAlloc: Always use GigaCage unless BRP is enabled

This is useful for PCScan since it enables the scanning routine to use a
bitmap for super-page lookup.

Bug: 11297512
Change-Id: I1634f0a97a1dd85e3407d80da6cd43e362476062
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2627147
Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Reviewed-by: default avatarBartek Nowierski <bartekn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842970}
parent f77f73a3
...@@ -325,7 +325,11 @@ struct BASE_EXPORT PartitionRoot { ...@@ -325,7 +325,11 @@ struct BASE_EXPORT PartitionRoot {
} }
bool UsesGigaCage() const { bool UsesGigaCage() const {
return features::IsPartitionAllocGigaCageEnabled() && allow_ref_count; return features::IsPartitionAllocGigaCageEnabled()
#if ENABLE_REF_COUNT_FOR_BACKUP_REF_PTR
&& allow_ref_count
#endif
;
} }
ALWAYS_INLINE bool IsScannable() const { ALWAYS_INLINE bool IsScannable() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment