We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7105073 commit 0f2e879Copy full SHA for 0f2e879
vm/src/vm/mod.rs
@@ -163,6 +163,16 @@ impl VirtualMachine {
163
recursion_depth: Cell::new(0),
164
};
165
166
+ if vm.state.hash_secret.hash_str("")
167
+ != vm
168
+ .ctx
169
+ .interned_str("")
170
+ .expect("empty str must be interned")
171
+ .hash(&vm)
172
+ {
173
+ panic!("Interpreters in same process must share the hash seed");
174
+ }
175
+
176
let frozen = frozen::get_module_inits().collect();
177
PyRc::get_mut(&mut vm.state).unwrap().frozen = frozen;
178
0 commit comments