We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733deeb commit 724b0e4Copy full SHA for 724b0e4
src/tools/miri/src/alloc_addresses/mod.rs
@@ -300,6 +300,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
300
}
301
trace!("Exposing allocation id {alloc_id:?}");
302
global_state.exposed.insert(alloc_id);
303
+ // Release the global state before we call `expose_tag`, which may call `get_alloc_info_extra`,
304
+ // which may need access to the global state.
305
drop(global_state);
306
if this.machine.borrow_tracker.is_some() {
307
this.expose_tag(alloc_id, tag)?;
0 commit comments