chakra-core / chakra-core/ChakraCore
ch.exe's global states (e.g. sourceContext, module*Map) need to change to work cross-thread
Open
Test Bug
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
WScriptJsrt uses global states to store sourceContext and maps for moduleRecords, etc..
Changes must be made to support cross-thread scenarios:
1) Module-related maps must be per JsContext to provide isolation between threads
2) Module-related maps have the same lifetime as JsContext
3) Code that updates sourceContext must be locked with critical sections
Contributor guide
Assessment
This issue has not been assessed yet.