| 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&);
|
|
|