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.