File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
30
30
31
31
let size = mutex. layout . size . bytes ( ) ;
32
32
assert ! (
33
- size < MAX_ACCESS_SIZE ,
34
- "Mutex is larger than maximal size of a memory access supported by GenMC ({size} >= {MAX_ACCESS_SIZE})"
33
+ size <= MAX_ACCESS_SIZE ,
34
+ "Mutex is larger than maximal size of a memory access supported by GenMC ({size} > {MAX_ACCESS_SIZE})"
35
35
) ;
36
36
let result = genmc_ctx. handle . borrow_mut ( ) . pin_mut ( ) . handle_mutex_lock (
37
37
genmc_ctx. active_thread_genmc_tid ( & this. machine ) ,
@@ -100,8 +100,8 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
100
100
let genmc_ctx = this. machine . data_race . as_genmc_ref ( ) . unwrap ( ) ;
101
101
let size = mutex. layout . size . bytes ( ) ;
102
102
assert ! (
103
- size < MAX_ACCESS_SIZE ,
104
- "Mutex is larger than maximal size of a memory access supported by GenMC ({size} >= {MAX_ACCESS_SIZE})"
103
+ size <= MAX_ACCESS_SIZE ,
104
+ "Mutex is larger than maximal size of a memory access supported by GenMC ({size} > {MAX_ACCESS_SIZE})"
105
105
) ;
106
106
let result = genmc_ctx. handle . borrow_mut ( ) . pin_mut ( ) . handle_mutex_try_lock (
107
107
genmc_ctx. active_thread_genmc_tid ( & this. machine ) ,
You can’t perform that action at this time.
0 commit comments