Skip to content

Commit 611f541

Browse files
committed
Cleanup
1 parent c561003 commit 611f541

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

genmc-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl Default for GenmcParams {
2828
print_random_schedule_seed: false,
2929
quiet: true,
3030
log_level_trace: false,
31-
do_symmetry_reduction: false, // TODO GENMC (PERFORMANCE): maybe make this default `true`
31+
do_symmetry_reduction: false,
3232
}
3333
}
3434
}

src/concurrency/data_race.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub enum AtomicRwOrd {
7171
}
7272

7373
/// Valid atomic read orderings, subset of atomic::Ordering.
74-
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)]
74+
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
7575
pub enum AtomicReadOrd {
7676
Relaxed,
7777
Acquire,
@@ -1016,7 +1016,6 @@ pub trait EvalContextExt<'tcx>: MiriInterpCxExt<'tcx> {
10161016
if let Some(data_race) = this.machine.data_race.as_vclocks_ref() {
10171017
data_race.acquire_clock(clock, &this.machine.threads);
10181018
}
1019-
// TODO GENMC: does GenMC need to be informed about this?
10201019
}
10211020
}
10221021

src/concurrency/thread.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,6 @@ impl<'tcx> ThreadManager<'tcx> {
586586
fn detach_thread(&mut self, id: ThreadId, allow_terminated_joined: bool) -> InterpResult<'tcx> {
587587
trace!("detaching {:?}", id);
588588

589-
tracing::info!("GenMC: TODO GENMC: does GenMC need special handling for detached threads?");
590-
591589
let is_ub = if allow_terminated_joined && self.threads[id].state.is_terminated() {
592590
// "Detached" in particular means "not yet joined". Redundant detaching is still UB.
593591
self.threads[id].join_status == ThreadJoinStatus::Detached

0 commit comments

Comments
 (0)