summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Becker <ben.becker@10gen.com>2013-04-02 10:18:22 -0700
committerBen Becker <ben.becker@10gen.com>2013-04-02 10:19:03 -0700
commit822840b180533efc07fc5eea660e929edc6f6c9f (patch)
treeb553a42a39f6a89c86c2290327f814268932e86e
parent64ccdfa2f6cfdc6a050e305375192ac20e8942a2 (diff)
downloadmongo-822840b180533efc07fc5eea660e929edc6f6c9f.tar.gz
SERVER-9213: remove v8 ResourceConstraints
-rw-r--r--src/mongo/scripting/engine_v8.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/scripting/engine_v8.cpp b/src/mongo/scripting/engine_v8.cpp
index bc61c8f3596..5ac935a0163 100644
--- a/src/mongo/scripting/engine_v8.cpp
+++ b/src/mongo/scripting/engine_v8.cpp
@@ -465,12 +465,6 @@ namespace mongo {
_isolate = v8::Isolate::New();
v8::Isolate::Scope iscope(_isolate);
- // resource constraints must be set on isolate, before any call or lock
- v8::ResourceConstraints rc;
- rc.set_max_young_space_size(4 * 1024 * 1024);
- rc.set_max_old_space_size(64 * 1024 * 1024);
- v8::SetResourceConstraints(&rc);
-
// lock the isolate and enter the context
v8::Locker l(_isolate);
v8::HandleScope handleScope;