chakra-core / chakra-core/ChakraCore

ch.exe's global states (e.g. sourceContext, module*Map) need to change to work cross-thread

Open
#3,319 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.