Skip to content

Commit 1f53be1

Browse files
committed
clarify a comment
1 parent 75bbe38 commit 1f53be1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/miri/src/concurrency/thread.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ impl<'mir, 'tcx: 'mir> ThreadManager<'mir, 'tcx> {
386386
data_race: Option<&mut data_race::GlobalState>,
387387
) -> InterpResult<'tcx> {
388388
if self.threads[joined_thread_id].join_status == ThreadJoinStatus::Detached {
389+
// On Windows this corresponds to joining on a closed handle.
389390
throw_ub_format!("trying to join a detached thread");
390391
}
391392

0 commit comments

Comments
 (0)