Skip to content

Commit 65857e7

Browse files
committed
Merge
2 parents 9e17690 + 8c222af commit 65857e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wasm/lib/src/vm_class.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ impl StoredVirtualMachine {
2929
}
3030
}
3131

32-
// It's fine that it's thread local, since WASM doesn't even have threads yet
32+
// It's fine that it's thread local, since WASM doesn't even have threads yet. thread_local! probably
33+
// gets compiled down to a normal-ish static varible, like Atomic* types:
34+
// https://rustwasm.github.io/2018/10/24/multithreading-rust-and-wasm.html#atomic-instructions
3335
thread_local! {
3436
static STORED_VMS: PyRef<HashMap<String, PyRef<StoredVirtualMachine>>> = Rc::default();
3537
static ACTIVE_VMS: PyRef<HashMap<String, *mut VirtualMachine>> = Rc::default();

0 commit comments

Comments
 (0)