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

Unified Diff: src/handles.h

Issue 1185633002: Additional HandleScopes to limit Handle consumption. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Refine comment. 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 eb57f0e26089383c9d7fe9f57a8cba5f41a111e2..4cbab0f42c682199c020b00b1b69450e3f955a0d 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -208,6 +208,8 @@ class HandleScope {
Isolate* isolate() { return isolate_; }
+ static const int kCheckHandleThreshold = 16 * 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