[SERVER-61008] Upgrade MozJS Created: 26/Oct/21  Updated: 29/Oct/23  Resolved: 07/Mar/22

Status: Closed
Project: Core Server
Component/s: Query Execution
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Mohammad Dashti (Inactive) Assignee: Mohammad Dashti (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-61705 update ServerlessTest to move the mem... Closed
is depended on by SERVER-50115 arm64/aarch64 support for macOS Closed
Duplicate
is duplicated by SERVER-42427 Upgrade MozJS/Spidermonkey to ESR 91 Closed
Problem/Incident
Related
related to SERVER-64298 Complete TODO listed in SERVER-61008 Closed
related to SERVER-67113 make mozjs library dependency private... Closed
is related to SERVER-66765 Enable the SpiderMonkey JIT by default Closed
Backwards Compatibility: Fully Compatible
Sprint: QE 2021-11-15, QE 2021-11-29, QE 2021-12-13, QE 2021-12-27, QE 2022-01-10, QE 2022-02-07, QE 2022-02-21, QE 2022-03-07, QE 2022-03-21, QE 2022-01-24
Participants:
Linked BF Score: 135

 Description   

In MongoDB 3.2, the javascript engine used for both the mongo shell and for server-side javascript in mongod changed from V8 to SpiderMonkey (a.k.a MozJS). On the current master, MozJS-60 is used. We want to upgrade to MozJS-91, which is based on Firefox ESR 91.

In WRITING-6794, the team agreed on the scope of this upgrade: http://tinyurl.com/y2vlgmok



 Comments   
Comment by Githook User [ 09/Mar/22 ]

Author:

{'name': 'Justin Seyster', 'email': 'justin.seyster@mongodb.com', 'username': 'jseyster'}

Message: SERVER-61008 Replace instance of MOZ_CRASH with MOZ_ASSERT_UNREACHABLE
Branch: master
https://github.com/mongodb/mongo/commit/00154dd188be8875da0ba92473e320122bb7fb87

Comment by Githook User [ 07/Mar/22 ]

Author:

{'name': 'Justin Seyster', 'email': 'justin.seyster@mongodb.com', 'username': 'jseyster'}

Message: SERVER-61008 Upgrade vendorized mozjs to esr91.3

Co-authored-by: Mohammad Dashti <mdashti@gmail.com>
Branch: master
https://github.com/mongodb/mongo/commit/26bab136615f5f7a5d6c35e767e2321dcc31b956

Comment by Githook User [ 05/Mar/22 ]

Author:

{'name': 'Justin Seyster', 'email': 'justin.seyster@mongodb.com', 'username': 'jseyster'}

Message: SERVER-61008 FINAL DRAFT Upgrade vendorized mozjs to esr91.3

Co-authored-by: Mohammad Dashti <mdashti@gmail.com>
Branch: jseyster/mozjs-final-draft-rebase
https://github.com/mongodb/mongo/commit/02d68b9ba9a39c13e472704efdb3ba5eddfa5a8a

Comment by Githook User [ 21/Jan/22 ]

Author:

{'name': 'Mohammad Dashti', 'email': 'mdashti@gmail.com', 'username': 'mdashti'}

Message: SERVER-61008 Added `README.md` for `MozJS` + Updated download, extraction, patching and config file generation scripts for `MozJS`

Co-authored-by: Justin Seyster <justin.seyster@mongodb.com>
Branch: mdashti/mozjs-upgrade-1-scripts
https://github.com/mongodb/mongo/commit/262daf1c41ecab50513701d2d7eea08e582f0826

Comment by Githook User [ 01/Dec/21 ]

Author:

{'name': 'Mohammad Dashti', 'email': 'mdashti@gmail.com', 'username': 'mdashti'}

Message: SERVER-61008 Rename `mozjs-60` directory to `mozjs`
Branch: master
https://github.com/mongodb/mongo/commit/44eaf87f83dddbbd2b082f651cbb324229c7a8d0

Generated at Thu Feb 08 05:51:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.