-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect VmCtx and ID_COUNTER with RwLock
AtomicU64 causes compilation issues when used as a subcrate of another crate when the toolchain configurations conflict. The problem was observed with ID_COUNTER when Polkadot SDK was compiled for riscv32emac, which could not be found from core. The documentation also states that: "This type is only available on platforms that support atomic loads and stores of u64." Address this by protecting ID_COUNTER with `spin::RwLock` and `VmCtx` with `std::sync::RwLock`. Signed-off-by: Jarkko Sakkinen <[email protected]>
- Loading branch information
Showing
9 changed files
with
394 additions
and
308 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.