From 1f53be15e1413e8f1a03578ded0c3045e893fc6c Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 25 Sep 2022 09:44:09 +0200 Subject: [PATCH] clarify a comment --- src/tools/miri/src/concurrency/thread.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/miri/src/concurrency/thread.rs b/src/tools/miri/src/concurrency/thread.rs index 0788c05be7a..a9d144eff54 100644 --- a/src/tools/miri/src/concurrency/thread.rs +++ b/src/tools/miri/src/concurrency/thread.rs @@ -386,6 +386,7 @@ impl<'mir, 'tcx: 'mir> ThreadManager<'mir, 'tcx> { data_race: Option<&mut data_race::GlobalState>, ) -> InterpResult<'tcx> { if self.threads[joined_thread_id].join_status == ThreadJoinStatus::Detached { + // On Windows this corresponds to joining on a closed handle. throw_ub_format!("trying to join a detached thread"); }