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

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: 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
Index: src/handles.h
diff --git a/src/handles.h b/src/handles.h
index eb57f0e26089383c9d7fe9f57a8cba5f41a111e2..f4172ba742267bd96732882de4224e5b0af8cfd0 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -208,6 +208,8 @@ class HandleScope {
Isolate* isolate() { return isolate_; }
+ static const int kCheckHandleThreshold = 32 * 1024;
+
private:
// Prevent heap allocation or illegal handle scopes.
HandleScope(const HandleScope&);

Powered by Google App Engine
This is Rietveld 408576698