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

Unified Diff: include/v8.h

Issue 2424393002: Constrain the zone segment pool size (Closed)
Patch Set: Fixing full size calculation Created 4 years, 2 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/zone/accounting-allocator.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 655da2ab2b97a53a9d2c077a68083b62d69ef931..89b9002fa684a2dd860977616d56a52f303876c0 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5686,17 +5686,22 @@ class V8_EXPORT ResourceConstraints {
uint32_t* stack_limit() const { return stack_limit_; }
// Sets an address beyond which the VM's stack may not grow.
void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
+
jochen (gone - plz use gerrit) 2016/10/19 14:18:31 unrelated?
size_t code_range_size() const { return code_range_size_; }
void set_code_range_size(size_t limit_in_mb) {
code_range_size_ = limit_in_mb;
}
+ size_t max_pool_size() const { return max_pool_size_; }
jochen (gone - plz use gerrit) 2016/10/19 14:18:31 can you pick a less generic name please? We have m
+ void set_max_pool_size(const size_t value) { max_pool_size_ = value; }
jochen (gone - plz use gerrit) 2016/10/19 14:18:31 please use pool_size_in_bytes or whatever the righ
+
private:
int max_semi_space_size_;
int max_old_space_size_;
int max_executable_size_;
uint32_t* stack_limit_;
size_t code_range_size_;
+ size_t max_pool_size_;
};
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/zone/accounting-allocator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698