Skip to content

Commit e7b9c61

Browse files
Run reducers on tokio blocking thread instead of rayon (#2785)
1 parent b86e41f commit e7b9c61

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

crates/core/src/host/wasm_common/module_host_actor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,7 @@ impl<T: WasmInstance> WasmModuleInstance<T> {
398398
)
399399
.entered();
400400

401-
// run the call_reducer call in rayon. it's important that we don't acquire a lock inside a rayon task,
402-
// as that can lead to deadlock.
403-
let (mut tx, result) = rayon::scope(|_| tx_slot.set(tx, || self.instance.call_reducer(op, budget)));
401+
let (mut tx, result) = tx_slot.set(tx, || self.instance.call_reducer(op, budget));
404402

405403
let ExecuteResult {
406404
energy,

0 commit comments

Comments
 (0)