Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The approach from the last commit wasn't totally good enough. It seems v8 implements "fast TLS" in some cases which uses inline assembly to get at thread locals and there's no way we can hook this. But this is only being used for Isolates so they don't need to be fiber-specific. To solve the problem when setting a local in FLS it also sets the local in FLS. ** This means that in fibers GetExistingThreadLocal and GetThreadLocal will have conflicting results ** but so far I haven't had any problems.
- Loading branch information
Showing
2 changed files
with
44 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters