[SERVER-66302] Remove 'JS_SetGlobalJitCompilerOption' due to a possible race condition Created: 06/May/22  Updated: 29/Oct/23  Resolved: 07/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc5, 6.1.0-rc0

Type: Bug 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:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: QE 2022-05-16
Participants:
Linked BF Score: 160

 Description   

The calls to JS_SetGlobalJitCompilerOption modify a global variable in MozJS and can lead to a race condition. These calls should be removed, as there are sufficient other parameters available to enable/disable JIT in MozJS.



 Comments   
Comment by Githook User [ 07/May/22 ]

Author:

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

Message: SERVER-66302 Removed 'JS_SetGlobalJitCompilerOption' calls to avoid a possible race condition

(cherry picked from commit c3765031e1c3c189593ca4329282dd31337d43dc)
Branch: v6.0
https://github.com/mongodb/mongo/commit/bdb54b6d65a6b9865de47cc24e0f9b577705b06d

Comment by Githook User [ 07/May/22 ]

Author:

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

Message: SERVER-66302 Removed 'JS_SetGlobalJitCompilerOption' calls to avoid a possible race condition
Branch: master
https://github.com/mongodb/mongo/commit/c3765031e1c3c189593ca4329282dd31337d43dc

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