SERVER-119444 Ensure JSThread args BSON is owned before cross-thread handoff (#53882)
GitOrigin-RevId: ce1bd0268d8a81a7553ab1e7edf08f163d89665a
This commit is contained in:
parent
c5ff683b5b
commit
1bc91fd5d7
@ -121,7 +121,7 @@ public:
|
||||
uasserted(ErrorCodes::JSInterpreterFailure, "Failed to JS::NewArrayObject");
|
||||
}
|
||||
|
||||
_sharedData->_args = ObjectWrapper(cx, robj).toBSON();
|
||||
_sharedData->_args = ObjectWrapper(cx, robj).toBSON().getOwned();
|
||||
|
||||
_sharedData->_stack = currentJSStackToString(cx);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user