Skip to content

Commit b727256

Browse files
committed
Fix missing exit call during merge
1 parent b9f2652 commit b727256

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

crates/wasmtime/src/runtime/component/func/host.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ where
371371
unsafe {
372372
flags.set_may_leave(true);
373373
}
374+
lower.exit_call()?;
374375
}
375376

376377
return Ok(());

crates/wasmtime/src/runtime/rr/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ mod tests {
603603
RecordBuffer::new_recorder(Box::new(File::create(tmppath)?), record_settings)?;
604604

605605
record_fn(&mut recorder)?;
606-
recorder.flush()?;
606+
drop(recorder);
607607

608608
let tmp = tmp.into_temp_path();
609609
let tmppath = <TempPath as AsRef<Path>>::as_ref(&tmp)

crates/wasmtime/src/runtime/rr/replay_driver.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ impl<T: 'static> ReplayInstance<T> {
287287
}
288288
}
289289

290-
_ => Err(ReplayError::IncorrectEventVariant)?,
290+
_ => {
291+
log::error!("Unexpected non-top-level RR event: {:?}", rr_event);
292+
Err(ReplayError::IncorrectEventVariant)?
293+
}
291294
}
292295
Ok(())
293296
}
@@ -445,7 +448,10 @@ impl<T: 'static> ReplayInstance<T> {
445448
}
446449
}
447450

448-
_ => Err(ReplayError::IncorrectEventVariant)?,
451+
_ => {
452+
log::error!("Unexpected non-top-level RR event: {:?}", rr_event);
453+
Err(ReplayError::IncorrectEventVariant)?
454+
}
449455
}
450456
Ok(())
451457
}

0 commit comments

Comments
 (0)