summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/implscope.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-27643 Use correct types when setting javascript stack limitJonathan Reams2018-04-161-3/+3
| | | | (cherry picked from commit 611b493648e64678fccac94373707e12e3904e91)
* SERVER-29651 Interrupts are caught in implscope functions or by the deadline ↵Ted Tuckman2017-10-041-89/+87
| | | | | | monitor if neccessary. (cherry picked from commit ce5e5fdfcad9ee0b3b08954982ded2a4bdfd8ac2)
* SERVER-30502 --disableJavaScriptJIT does not disable JITMark Benvenuto2017-10-011-0/+8
| | | | (cherry picked from commit b0338af0677ceb4a768033e179e278b4f3a280f2)
* SERVER-28821 Dont require leak free execution before the leak checker runsAndrew Morrow2017-10-011-1/+0
| | | | (cherry picked from commit e2ede4bf04b485955a2c32cfe1eb12a6ac2a6014)
* SERVER-30875 add requireOwnedObjects() to scoper3.4.8-rc1r3.4.8Jason Carey2017-08-301-0/+10
| | | | | | | | Add a flag to JS scopes that requires that bson objects bound to the scope be owned. This should allow for more easy auditing of scopes that don't explicitly manage lifetime with advanceGeneration. (cherry picked from commit 79b47945a6aae707d44e05669d991d86b157a14b)
* SERVER-28323 Don't pass JavaScript scopes a function ID numberSpencer Jackson2017-06-191-32/+22
| | | | (cherry picked from commit d20c74fe700d15ea555f9c6cae916b522005eec7)
* SERVER-27873 Dump a JavaScript backtrace of any code running in SpiderMonkey ↵Jonathan Abrahams2017-04-271-0/+15
| | | | | | in hang_analyzer.py (cherry picked from commit eaf3190fd59d291bb537cd3f3edde7e6abab7466)
* SERVER-22520 Improve ASAN MozJS integrationJason Carey2017-04-091-20/+47
| | | | | | | | | | ASAN has trouble dealing with the heap allocations SpiderMonkey produces, due to the storage format of those pointers (tagged punbox'd types). Keeping a side std::unordered_set<void*> which tracks allocations provides the reachability ASAN needs for a little bit of extra book keeping. (cherry picked from commit 96f0fbd7911533fd4279742d81cf53b198d71b03)
* SERVER-27177 initialize kCurrentScope before creating mozjs runtime/scoper3.4.3-rc2r3.4.3Jonathan Reams2017-03-171-0/+4
| | | | (cherry picked from commit 7cb646696ba926a577a23572afa857b4360b9bac)
* SERVER-26596 Make sure test doesn't break other tests and fix memory leakJonathan Reams2016-10-171-20/+22
|
* SERVER-26596 Don't abort when javascript heap limit is set too low to ↵Jonathan Reams2016-10-131-1/+9
| | | | initialize spidermonkey
* SERVER-23135 properly print context on js loadMatt Cotter2016-09-151-6/+12
| | | | | This patch ensures that we print the correct filename and line number for syntax errors encountered in included js files via `load()`.
* SERVER-22688 Provide a setParameter and shell option to control the js heap ↵Waley Chen2016-09-151-11/+8
| | | | limit
* Revert "SERVER-22688 Provide a setParameter and shell option to control the ↵Waley Chen2016-09-131-8/+11
| | | | | | js heap limit" This reverts commit 955cf8c998a60a8c2a2493dd428dd3d763e90259.
* SERVER-22688 Provide a setParameter and shell option to control the js heap ↵Waley Chen2016-09-131-11/+8
| | | | limit
* SERVER-25895 JS Exceptions can overflow BufBuilderMark Benvenuto2016-09-071-14/+24
|
* SERVER-25764 Interrupt javascript periodically.Jonathan Reams2016-08-291-5/+13
|
* SERVER-25559 periodically call gc durring interruptMatt Cotter2016-08-181-1/+10
| | | | | When we are nearing our soft memory limit, calls garbage collect during interrupt to reclaim some memory.
* SERVER-22382 allow mongo --host to take uriMatt Cotter2016-08-181-4/+6
|
* SERVER-25056 implscope checks interruptability against opctxMatt Cotter2016-08-091-8/+22
|
* SERVER-24991 Redact streaming log messagesDan Pasette2016-07-201-3/+2
| | | | | | | | | | Covered files in src/mongo.. /executor /logger /platform /util /scripting /shell
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-1/+1
|
* SERVER-12489 Make shell warn if version does not match server'sJoanna Cheng2016-05-231-4/+4
| | | | | | Closes #1085 Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
* SERVER-23553 Remove Decimal128::enabled; now always trueGeert Bosch2016-05-181-3/+1
|
* SERVER-24056 PPC64LE Debug needs higher stack reservation for SpiderMonkeyMark Benvenuto2016-05-091-1/+13
|
* SERVER-23358 SpiderMonkey 45.0.2 ESR MongoDB & Build IntegrationMark Benvenuto2016-04-211-6/+8
|
* SERVER-23472 Enable JavaScript protection by defaultShane Harvey2016-04-141-1/+7
| | | | Add mongo shell parameter --disableJavaScriptProtection.
* SERVER-9131 prevent automatic function marshalling in shellrahuldhodapkar2016-02-171-0/+6
| | | | add shell flag --enableJavaScriptProtection and server setParameter javascriptProtection
* SERVER-22349 Throw interruptions from loadStoredJason Carey2016-02-081-1/+1
| | | | | | | | | | | | The JS engine's loadStored eats exceptions that occur while it's loading functions from system.js. This also eats interruption exceptions, which can lead to a situation where a map reduce job is killed during loadStored, but the interrupt is lost. For tests where the map or reduce stages are long or non-terminating, and we rely on killing them, this can lead to hangs. Re-throwing interrupts from the try/catch block around loadStored fixes this behavior.
* SERVER-21715 call JS_SetGCParametersBasedOnAvailableMemoryr3.2.0-rc6r3.2.0Jason Carey2015-12-021-0/+3
| | | | | Improves gc performance if we indicate to spidermonkey that we have more than 512megs of ram available.
* SERVER-21717 Be more graceful in JS OOMJason Carey2015-12-021-7/+11
| | | | | rather than return null to spidermonkey, just request that we bail out as soon as possible.
* SERVER-21692 check return of JS_NewRuntimeJason Carey2015-11-301-2/+1
| | | | | Moved an uassert away from a call site. Opens up the chance for nullptr dereferences.
* SERVER-21359 let JS registerOperation take nullptrJason Carey2015-11-191-0/+6
| | | | | getPooledScope takes an operationContext* that can apparently be null, make implscope robust in that case.
* SERVER-21429 Add on/off flag for Javascript JITJason Carey2015-11-131-2/+13
| | | | | Adding a setParameter and a shell flag called disableJavaScriptJIT which can be used to disable the js jit if desired.
* SERVER-19614 Return to using stdx::thread for JS impl scopeAndrew Morrow2015-10-271-4/+0
|
* SERVER-19614 Use stack bounds to limit JS recursionAndrew Morrow2015-10-271-7/+17
|
* SERVER-19614 Temporarily disable JS recursion depth protectionsAndrew Morrow2015-10-131-3/+7
|
* SERVER-20678 Create a new JS scope for each mapreduceAndrew Morrow2015-10-121-0/+15
|
* SERVER-19977 More fixes for javascript optJason Carey2015-10-061-2/+2
| | | | | * get an owned bsonobj in runCommandWithMetadata * increase the guard stack size to 32k (needed for debug asan builds)
* SERVER-19977 Intern JS StringsJason Carey2015-10-061-0/+1
| | | | | | Rather than supplying const char*'s throughout our use of the MozJS api, intern the strings and root their associated ids (to save on string parsing).
* SERVER-20564 no default getOwned for BSON in JSJason Carey2015-10-061-7/+17
|
* SERVER-19614 Implement stack quotas for JSJason Carey2015-10-061-0/+8
| | | | | | Replace existing calls to std::thread with platform threading primitives and set a stack quota to avoid stack overflows for some recursive use cases in js.
* SERVER-19938 Add File:Line:Col to JS syntax errorsJason Carey2015-09-231-1/+8
|
* SERVER-19607 no recursion in JS -> BSON conversionJason Carey2015-09-211-3/+7
| | | | | | | Replace functional recursion in javascript object to bson conversion with an explicit stack to minimize the memory cost of processing very deep / cyclical objects. This prevents stack overflows on debug and non-optimized builds on some platforms.
* SERVER-20055 try harder in _checkErrorState in JSJason Carey2015-08-211-1/+14
| | | | | | _checkErrorState looks for an exception that's cleared the top of the js stack, but not a pending one. Check there too, to avoid stackless sad errors in a few more cases.
* SERVER-19935 Make JSThread stacks more informativeJason Carey2015-08-141-0/+16
| | | | | | We have some pretty poor error reporting for interrupted $where's and map reduces. This fixes the interruption bit and accumulates stack's across threads.
* SERVER-19628 Add Decimal128 type support to update/delete code pathsDavid Hatch2015-08-131-1/+1
|
* SERVER-19627 Add Decimal128 type support to mongo shellRaymond Jacobson2015-08-131-0/+11
|
* SERVER-19570 Issue kill against find command cursors in shell when cursor ↵Qingyang Chen2015-08-121-0/+2
| | | | object is destroyed
* SERVER-16703 Improve parsing of JS function bodies and expressionsJonathan Reams2015-08-121-13/+4
|