Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: src/api.cc

Issue 2942543002: [heap] Allow a minimum semi-space size of 512K. (Closed)
Patch Set: test Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 50bf23224b1ce5f05a6472d04029ed60cc8bdc5e..46aabe2eb135547e615c3851a2df1c7ea7595d1b 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -881,7 +881,7 @@ Extension::Extension(const char* name,
}
ResourceConstraints::ResourceConstraints()
- : max_semi_space_size_(0),
+ : max_semi_space_size_in_kb_(0),
max_old_space_size_(0),
stack_limit_(NULL),
code_range_size_(0),
@@ -889,7 +889,7 @@ ResourceConstraints::ResourceConstraints()
void ResourceConstraints::ConfigureDefaults(uint64_t physical_memory,
uint64_t virtual_memory_limit) {
- set_max_semi_space_size(
+ set_max_semi_space_size_in_kb(
static_cast<int>(i::Heap::ComputeMaxSemiSpaceSize(physical_memory)));
set_max_old_space_size(
static_cast<int>(i::Heap::ComputeMaxOldGenerationSize(physical_memory)));
@@ -906,7 +906,7 @@ void ResourceConstraints::ConfigureDefaults(uint64_t physical_memory,
void SetResourceConstraints(i::Isolate* isolate,
const ResourceConstraints& constraints) {
- int semi_space_size = constraints.max_semi_space_size();
+ int semi_space_size = constraints.max_semi_space_size_in_kb();
int old_space_size = constraints.max_old_space_size();
size_t code_range_size = constraints.code_range_size();
size_t max_pool_size = constraints.max_zone_pool_size();

Powered by Google App Engine
This is Rietveld 408576698