Skip to content

Commit 755ae96

Browse files
committed
Remove old FIXME
1 parent 6ee68f5 commit 755ae96

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/data_race.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -679,14 +679,12 @@ impl VClockAlloc {
679679

680680
/// Create a new data-race detector for newly allocated memory.
681681
pub fn new_allocation(global: &MemoryExtra, len: Size, track_alloc: bool) -> VClockAlloc {
682-
//FIXME: stack allocations are currently ignored due to the lazy nature of stack
683-
// allocation, this results in data-races being missed.
684-
let (alloc_timestamp, alloc_index) = if !track_alloc {
685-
(0, VectorIdx::MAX_INDEX)
686-
}else{
682+
let (alloc_timestamp, alloc_index) = if track_alloc {
687683
let (alloc_index, clocks) = global.current_thread_state();
688684
let alloc_timestamp = clocks.clock[alloc_index];
689685
(alloc_timestamp, alloc_index)
686+
}else{
687+
(0, VectorIdx::MAX_INDEX)
690688
};
691689
VClockAlloc {
692690
global: Rc::clone(global),

0 commit comments

Comments
 (0)