SERVER-135060ClosedFixed

Track pinned host memory in legacy MozJS engine

The legacy MozJS engine doesn't keep track of pinned host memory of the underlying BSON documents, meaning memory use can grow far above the intended threshold before a GC is triggered, potentially causing an OOM. This does not affect 9.0/master since the legacy MozJS engine is deprecated, but can still be a problem for 8.3 and older.

Affected Versions
Versions known to exhibit this issue
7.0.08.0.08.3.0
Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10248.3.168.0.37
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
MozJS