File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
158
158
"GenMC: Mutex::try_lock(): is_reset: {}, is_lock_acquired: {}" ,
159
159
result. is_reset, result. is_lock_acquired
160
160
) ;
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 ." ) ;
162
162
// Write the return value of try_lock, i.e., whether we acquired the mutex.
163
163
this. write_scalar ( Scalar :: from_bool ( result. is_lock_acquired ) , dest) ?;
164
164
// NOTE: We don't write anything back to Miri's memory where the Mutex is located, that state is handled only by GenMC.
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ impl GenmcCtx {
201
201
self . exec_state . allow_data_races . get ( )
202
202
}
203
203
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.
205
205
#[ must_use]
206
206
fn active_thread_genmc_tid < ' tcx > ( & self , machine : & MiriMachine < ' tcx > ) -> i32 {
207
207
let thread_infos = self . exec_state . thread_id_manager . borrow ( ) ;
You can’t perform that action at this time.
0 commit comments