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

Unified Diff: src/handles.h

Issue 1192743005: Reland 'Additional HandleScopes to limit Handle consumption.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « src/ast.cc ('k') | src/handles-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.h
diff --git a/src/handles.h b/src/handles.h
index 7a296fe68a16acb2f1d05a076f1c84614bf82970..2df5d040b6577965b19b6e1e2b6acfbe86cf25c0 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -226,6 +226,11 @@ class HandleScope {
Isolate* isolate() { return isolate_; }
+ // Limit for number of handles with --check_handle-count. This is
+ // large enough to compile natives and pass unit tests with some
+ // slack for future changes to natives.
+ static const int kCheckHandleThreshold = 30 * 1024;
+
private:
// Prevent heap allocation or illegal handle scopes.
HandleScope(const HandleScope&);
« no previous file with comments | « src/ast.cc ('k') | src/handles-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698