summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/engine.h
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-09-13 16:10:04 -0400
committerWaley Chen <waleycz@gmail.com>2016-09-13 17:54:11 -0400
commit955cf8c998a60a8c2a2493dd428dd3d763e90259 (patch)
tree9e6253c35b752b6f853454cfb4a47acdb5cf77dd /src/mongo/scripting/mozjs/engine.h
parent4f211b037feac1d4c80d65df5a0fae12fcac1e4c (diff)
downloadmongo-955cf8c998a60a8c2a2493dd428dd3d763e90259.tar.gz
SERVER-22688 Provide a setParameter and shell option to control the js heap limit
Diffstat (limited to 'src/mongo/scripting/mozjs/engine.h')
-rw-r--r--src/mongo/scripting/mozjs/engine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/scripting/mozjs/engine.h b/src/mongo/scripting/mozjs/engine.h
index 8d6cf201e5f..8cbbc4e3de5 100644
--- a/src/mongo/scripting/mozjs/engine.h
+++ b/src/mongo/scripting/mozjs/engine.h
@@ -69,6 +69,9 @@ public:
void enableJavaScriptProtection(bool value) override;
bool isJavaScriptProtectionEnabled() const override;
+ int getJSHeapMBLimit() const override;
+ void setJSHeapMBLimit(int limit) override;
+
void registerOperation(OperationContext* ctx, MozJSImplScope* scope);
void unregisterOperation(unsigned int opId);