summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/global.cpp
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-09-13 18:13:34 -0400
committerWaley Chen <waleycz@gmail.com>2016-09-13 18:13:34 -0400
commit6471618952c8727bc5b06039ed2cf861e1a36436 (patch)
treee2b5ab9461919b265a7d929d0e22f457b7409671 /src/mongo/scripting/mozjs/global.cpp
parent955cf8c998a60a8c2a2493dd428dd3d763e90259 (diff)
downloadmongo-6471618952c8727bc5b06039ed2cf861e1a36436.tar.gz
Revert "SERVER-22688 Provide a setParameter and shell option to control the js heap limit"
This reverts commit 955cf8c998a60a8c2a2493dd428dd3d763e90259.
Diffstat (limited to 'src/mongo/scripting/mozjs/global.cpp')
-rw-r--r--src/mongo/scripting/mozjs/global.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/scripting/mozjs/global.cpp b/src/mongo/scripting/mozjs/global.cpp
index 9ea7a5c24a9..105d9478dba 100644
--- a/src/mongo/scripting/mozjs/global.cpp
+++ b/src/mongo/scripting/mozjs/global.cpp
@@ -35,7 +35,6 @@
#include "mongo/base/init.h"
#include "mongo/logger/logger.h"
#include "mongo/logger/logstream_builder.h"
-#include "mongo/scripting/engine.h"
#include "mongo/scripting/mozjs/implscope.h"
#include "mongo/scripting/mozjs/jsstringwrapper.h"
#include "mongo/scripting/mozjs/objectwrapper.h"
@@ -45,12 +44,11 @@
namespace mongo {
namespace mozjs {
-const JSFunctionSpec GlobalInfo::freeFunctions[6] = {
+const JSFunctionSpec GlobalInfo::freeFunctions[5] = {
MONGO_ATTACH_JS_FUNCTION(gc),
MONGO_ATTACH_JS_FUNCTION(print),
MONGO_ATTACH_JS_FUNCTION(version),
MONGO_ATTACH_JS_FUNCTION(buildInfo),
- MONGO_ATTACH_JS_FUNCTION(getJSHeapMBLimit),
JS_FS_END,
};
@@ -98,10 +96,6 @@ void GlobalInfo::Functions::buildInfo::call(JSContext* cx, JS::CallArgs args) {
ValueReader(cx, args.rval()).fromBSON(b.obj(), nullptr, false);
}
-void GlobalInfo::Functions::getJSHeapMBLimit::call(JSContext* cx, JS::CallArgs args) {
- ValueReader(cx, args.rval()).fromDouble(mongo::globalScriptEngine->getJSHeapMBLimit());
-}
-
void GlobalInfo::Functions::gc::call(JSContext* cx, JS::CallArgs args) {
auto scope = getScope(cx);