| Age | Commit message (Collapse) | Author |
|
GitOrigin-RevId: 3a3a9d26d8a167c98e72afde863784e9a894ee8d
|
|
Client::initThread to provide a Service*
|
|
|
|
|
|
|
|
This reverts commit c35bad3b048e8d885bf0b7517aacd2349ea81d14.
|
|
|
|
|
|
|
|
Co-authored-by: Mohammad Dashti <mdashti@gmail.com>
|
|
|
|
|
|
- Remove several legacy logger/ files
- Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version.
- Globally replace logger::{LogSeverity,LogComponent} => logv2::
|
|
o converting some log lines that were missed
o fixing some missing includes
create mode 100644 src/mongo/transport/ismaster_metrics.cpp
|
|
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
|
|
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
|
|
We don't need these implementations as the mozjs code doesn't
call into them anymore. Therefore we don't have to either.
|
|
|
|
|
|
Remove leading comments that are just stating the filename.
Move any file-level comments below the copyright banner.
Remove leading blank lines.
|
|
|
|
This reverts commit a3d232b697dfc7c8833fc1855abbc190fe0d5970.
|
|
|
|
|
|
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.
|
|
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.
|
|
possible
|
|
Covered files in src/mongo..
/executor
/logger
/platform
/util
/scripting
/shell
|
|
|
|
|
|
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.
|
|
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).
|
|
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
SpiderMonkey error codes overlap with Mongo error codes in thrown user
assertions. Avoid that by lifting our error codes above theirs.
|
|
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.
|
|
Provides SpiderMonkey 38.0.1esr as a JS engine for mongo and mongod.
|