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 @@ -497,8 +497,8 @@ impl DepGraph {
497
497
let current_dep_graph = & self . data . as_ref ( ) . unwrap ( ) . current ;
498
498
499
499
Some ( (
500
- current_dep_graph. total_read_count . load ( SeqCst ) ,
501
- current_dep_graph. total_duplicate_read_count . load ( SeqCst ) ,
500
+ current_dep_graph. total_read_count . load ( Relaxed ) ,
501
+ current_dep_graph. total_duplicate_read_count . load ( Relaxed ) ,
502
502
) )
503
503
} else {
504
504
None
@@ -1111,7 +1111,7 @@ impl DepGraphData {
1111
1111
if let Some ( task_deps) = icx. task_deps {
1112
1112
let mut task_deps = task_deps. lock ( ) ;
1113
1113
if cfg ! ( debug_assertions) {
1114
- self . current . total_read_count . fetch_add ( 1 , SeqCst ) ;
1114
+ self . current . total_read_count . fetch_add ( 1 , Relaxed ) ;
1115
1115
}
1116
1116
if task_deps. read_set . insert ( source) {
1117
1117
task_deps. reads . push ( source) ;
@@ -1129,7 +1129,7 @@ impl DepGraphData {
1129
1129
}
1130
1130
}
1131
1131
} else if cfg ! ( debug_assertions) {
1132
- self . current . total_duplicate_read_count . fetch_add ( 1 , SeqCst ) ;
1132
+ self . current . total_duplicate_read_count . fetch_add ( 1 , Relaxed ) ;
1133
1133
}
1134
1134
}
1135
1135
} )
You can’t perform that action at this time.
0 commit comments