Skip to content

Commit b38d2cd

Browse files
committed
Fix comments
1 parent 1eceb12 commit b38d2cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/concurrency/genmc/intercept.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
158158
"GenMC: Mutex::try_lock(): is_reset: {}, is_lock_acquired: {}",
159159
result.is_reset, result.is_lock_acquired
160160
);
161-
assert!(!result.is_reset, "GenMC returned 'reset' for a mutex lock multiple times.");
161+
assert!(!result.is_reset, "GenMC returned 'reset' for a mutex try_lock.");
162162
// Write the return value of try_lock, i.e., whether we acquired the mutex.
163163
this.write_scalar(Scalar::from_bool(result.is_lock_acquired), dest)?;
164164
// NOTE: We don't write anything back to Miri's memory where the Mutex is located, that state is handled only by GenMC.

src/concurrency/genmc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl GenmcCtx {
201201
self.exec_state.allow_data_races.get()
202202
}
203203

204-
/// Get the id of the currently active thread mapped to it's thread ID for GenMC.
204+
/// Get the GenMC id of the currently active thread.
205205
#[must_use]
206206
fn active_thread_genmc_tid<'tcx>(&self, machine: &MiriMachine<'tcx>) -> i32 {
207207
let thread_infos = self.exec_state.thread_id_manager.borrow();

0 commit comments

Comments
 (0)