Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Make the VM thread-safe #28

Open
vaivaswatha opened this issue Jun 9, 2021 · 2 comments
Open

Make the VM thread-safe #28

vaivaswatha opened this issue Jun 9, 2021 · 2 comments

Comments

@vaivaswatha
Copy link
Contributor

vaivaswatha commented Jun 9, 2021

  • There are global variables whose access needs to be mutexed. Here's a non-exhaustive list.
    • JSON read/writer in Utils.cpp
    • ScillaStdout in SRTL.cpp
  • LLVM context and other LLVM objects accessed, as necessary.
  • The object code cache manager, both at the memory level and disk level.
  • Secp256k1 context has been defined to be a global variable to save time. This isn't thread-safe.
@vaivaswatha
Copy link
Contributor Author

vaivaswatha commented Jun 13, 2021

With #29 the following are now not needed.

  • LLVM context and other LLVM objects accessed, as necessary.
  • The object code cache manager, both at the memory level and disk level.

@vaivaswatha
Copy link
Contributor Author

With 2c6e7dc, ScillaStdout in SRTL.cpp is no more a worry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant