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

Unified Diff: include/v8.h

Issue 242014: Adds an API for setting the stack limit per-thread. (Closed)
Patch Set: Leaves the limits of pending interrupts alone instead of reestablishing them." Created 11 years, 3 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') | no next file with comments »
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 b7d9820bbfaadf598e53e1c6ff6943c57a9278f9..64dda45aca81c753978a3b0287d9ec1ee50cb307 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -1984,23 +1984,28 @@ Handle<Boolean> V8EXPORT False();
* A set of constraints that specifies the limits of the runtime's
* memory use.
*/
-class V8EXPORT ResourceConstraints {
+class V8EXPORT HeapResourceConstraints {
public:
- ResourceConstraints();
+ HeapResourceConstraints();
int max_young_space_size() const { return max_young_space_size_; }
void set_max_young_space_size(int value) { max_young_space_size_ = value; }
int max_old_space_size() const { return max_old_space_size_; }
void set_max_old_space_size(int value) { max_old_space_size_ = value; }
- uint32_t* stack_limit() const { return stack_limit_; }
- void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
private:
int max_young_space_size_;
int max_old_space_size_;
- uint32_t* stack_limit_;
};
-bool SetResourceConstraints(ResourceConstraints* constraints);
+bool SetHeapResourceConstraints(HeapResourceConstraints* constraints);
+
+
+/**
+ * Specifies the approximate limit of the runtime's stack
+ * use. SetStackLimit can be called multiple times to set the stack
+ * limit on different threads.
+ */
+void SetStackLimit(uint32_t* limit);
// --- E x c e p t i o n s ---
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698