Mac: Use system allocator instead of PartitionAlloc (fixes issue #3061)

This change disables PartitionAlloc and the related allocator shim. Using the
system allocator makes it easier to integrate with client applications which
may perform allocations before initializing CEF.
This commit is contained in:
Marshall Greenblatt 2021-12-17 19:44:48 -05:00
parent dfc0131516
commit 2f5e1b621e

View File

@ -236,6 +236,12 @@ def GetRecommendedDefaultArgs():
# etc). See https://bitbucket.org/chromiumembedded/cef/issues/2679.
result['forbid_non_component_debug_builds'] = False
if platform == 'mac':
# Use the system allocator on Mac. Default is 'partition' (PartitionAlloc)
# with the allocator shim enabled. See issue #3061.
result['use_allocator'] = 'none'
result['use_allocator_shim'] = False
if platform == 'linux':
# Use a sysroot environment. Default is true. False is recommended for local
# builds.