!5067 fix: invalid capacity_ on devices with small RAM

Merge pull request !5067 from diartyz/ios
This commit is contained in:
openharmony_ci 2023-10-28 14:12:13 +00:00 committed by Gitee
commit 78a181596b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -43,8 +43,8 @@ static constexpr size_t LARGE_POOL_SIZE = 480_MB;
static constexpr size_t MEDIUM_POOL_SIZE = 256_MB;
static constexpr size_t LOW_POOL_SIZE = 64_MB;
static constexpr size_t MIN_MEM_POOL_CAPACITY = 64_MB;
static constexpr size_t PHY_SIZE_MULTIPLE = 4;
static constexpr size_t WORKER_NUM = 8;
static constexpr size_t PHY_SIZE_MULTIPLE = WORKER_NUM + 1;
static constexpr size_t STANDARD_POOL_SIZE = WORKER_NUM * DEFAULT_WORKER_HEAP_SIZE + DEFAULT_HEAP_SIZE;
static constexpr size_t MIN_OLD_SPACE_LIMIT = 2_MB;