diff options
-rw-r--r-- | config/custom_scudo_config.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/custom_scudo_config.h b/config/custom_scudo_config.h index 5e85d0fe1a7..26f590e3c25 100644 --- a/config/custom_scudo_config.h +++ b/config/custom_scudo_config.h @@ -107,8 +107,9 @@ struct AndroidNormalConfig { static const uptr GroupSizeLog = 18U; typedef uptr CompactPtrT; #endif - static const s32 MinReleaseToOsIntervalMs = 1000; + static const s32 MinReleaseToOsIntervalMs = -1; static const s32 MaxReleaseToOsIntervalMs = 1000; + static const s32 DefaultReleaseToOsIntervalMs = 1000; }; #if SCUDO_CAN_USE_PRIMARY64 template <typename Config> using PrimaryT = SizeClassAllocator64<Config>; @@ -122,8 +123,9 @@ struct AndroidNormalConfig { static const u32 QuarantineSize = 32U; static const u32 DefaultMaxEntriesCount = 32U; static const uptr DefaultMaxEntrySize = 2UL << 20; - static const s32 MinReleaseToOsIntervalMs = 0; + static const s32 MinReleaseToOsIntervalMs = -1; static const s32 MaxReleaseToOsIntervalMs = 1000; + static const s32 DefaultReleaseToOsIntervalMs = 0; }; template <typename Config> using CacheT = MapAllocatorCache<Config>; }; |