summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/jsthread.cpp
AgeCommit message (Collapse)Author
2024-04-12SERVER-64574 Upgrade third_party/mozjs with ESR115.7Santiago Roche
GitOrigin-RevId: 3a3a9d26d8a167c98e72afde863784e9a894ee8d
2023-10-15SERVER-82100 Remove Client::unspecifiedService and force all callers of ↵George Wangensteen
Client::initThread to provide a Service*
2023-08-18SERVER-74662 Confirm changes in query code if threads are killable by defaultRushan Chen
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2023-04-26SERVER-70127 change system operations to be killable by defaultJiawei Yang
2023-04-25Revert "SERVER-70127 change system operations to be killable by default"Sviatlana Zuiko
This reverts commit c35bad3b048e8d885bf0b7517aacd2349ea81d14.
2023-04-25SERVER-70127 change system operations to be killable by defaultJiawei Yang
2022-05-12SERVER-65583 Create an FSM workload for FLE2Erwin Pe
2022-05-06SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue
2022-03-07SERVER-61008 Upgrade vendorized mozjs to esr91.3Justin Seyster
Co-authored-by: Mohammad Dashti <mdashti@gmail.com>
2020-08-24SERVER-49882 Log status in the catch block in JSThread::run()Charlie Swanson
2020-05-18SERVER-46932 supress more logging in the shellGabriel Russell
2020-04-26SERVER-47735 change mongo source over to logv2Billy Donahue
- Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
2020-02-21SERVER-45567 removing util/log.h where I canGabriel Russell
o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
2020-02-07SERVER-45456 Allow JavaScript on mongosJames Wahlin
create mode 100644 jstests/noPassthrough/mr_noscripting.js delete mode 100644 jstests/noPassthroughWithMongod/mr_noscripting.js create mode 100644 jstests/sharding/agg_js_on_mongos.js create mode 100644 jstests/sharding/javascript_heap_limit.js
2019-10-21SERVER-42967 SERVER-42895 SERVER-44086 Expand DiagnosticInfo hooks in ↵Ben Caimano
Interruptible and Mutex This commit: - Adds Listener hooks for Interruptible - Expands Listener hooks for Mutex - Updates the DiagnosticInfo and its tests to use the new hooks - Removes stacktracing pieces from DiagnosticInfo and its tests - Removes mongo::ConditionVariable entirely in favor of Interruptible
2019-10-14SERVER-42736 Remove PosixNSPR implementations.ADAM Martin
We don't need these implementations as the mozjs code doesn't call into them anymore. Therefore we don't have to either.
2019-09-17SERVER-42165 Replace uses of stdx::mutex with mongo::MutexBen Caimano
2019-06-10SERVER-39339 Remove `stdx/memory.h`ADAM David Alan Martin
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2019-01-30SERVER-29286 import and use mozjs-60Gabriel Russell
2019-01-29Revert "SERVER-29286 import and use mozjs-60"Gabriel Russell
This reverts commit a3d232b697dfc7c8833fc1855abbc190fe0d5970.
2019-01-29SERVER-29286 import and use mozjs-60Gabriel Russell
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2018-09-18SERVER-35154 Propagate JS exceptions through ScopedThread#join().Max Hirschhorn
This makes it so that if the ScopedThread exited due to an uncaught JavaScript exception, then calling .join() or .returnData() on it throws a JavaScript exception with the error message and stacktrace intact.
2017-04-07SERVER-22520 Improve ASAN MozJS integrationJason Carey
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.
2016-10-03SERVER-19042 Make globalScriptEngine a decoration on ServiceContext where ↵Jonathan Reams
possible
2016-07-20SERVER-24991 Redact streaming log messagesDan Pasette
Covered files in src/mongo.. /executor /logger /platform /util /scripting /shell
2016-05-28SERVER-23971 Clang-Format codeMark Benvenuto
2015-10-27SERVER-19614 Return to using stdx::thread for JS impl scopeAndrew Morrow
2015-10-06SERVER-19977 Use JS_NewArrayObject directlyJason Carey
Rather than creating objects with stringified integer keys, just create them directly with JS_NewArrayObject, which can take JS::CallArgs or JS::AutoValueVector's directly.
2015-10-06SERVER-19977 Intern JS StringsJason Carey
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).
2015-10-06SERVER-20564 no default getOwned for BSON in JSJason Carey
2015-10-06SERVER-19614 Implement stack quotas for JSJason Carey
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.
2015-09-28SERVER-20496 Harmonize JS and Server --dbgJason Carey
2015-09-21SERVER-19607 no recursion in JS -> BSON conversionJason Carey
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.
2015-09-17SERVER-20375 Constrain JS method thisvJason Carey
This constrains universal access to wraptype methods by providing a JS_ATTACH_JS_CONSTRAINED_METHOD() macro which allows for a list of types that are allowed to call said method. In this way we can lock down all methods without having to add uasserts to each individual method body.
2015-08-14SERVER-19935 Make JSThread stacks more informativeJason Carey
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.
2015-08-10SERVER-19705 unmix MozJS and Mongo Error CodesJason Carey
SpiderMonkey error codes overlap with Mongo error codes in thrown user assertions. Avoid that by lifting our error codes above theirs.
2015-07-30SERVER-19612 JSThread exceptions lost on SMJason Carey
After we return from JS::Call we don't have exceptions pending, they've already been captured by the error handler. Handle JSThread exceptions like the others and return them correctly.
2015-07-14SERVER-18531 Integrate SpiderMonkeyJason Carey
Provides SpiderMonkey 38.0.1esr as a JS engine for mongo and mongod.