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 @@ -501,8 +501,8 @@ impl DepGraph {
501
501
if cfg ! ( debug_assertions) {
502
502
let current_dep_graph = & self . data . as_ref ( ) . unwrap ( ) . current ;
503
503
504
- Some ( ( current_dep_graph. total_read_count . load ( SeqCst ) ,
505
- current_dep_graph. total_duplicate_read_count . load ( SeqCst ) ) )
504
+ Some ( ( current_dep_graph. total_read_count . load ( Relaxed ) ,
505
+ current_dep_graph. total_duplicate_read_count . load ( Relaxed ) ) )
506
506
} else {
507
507
None
508
508
}
@@ -1114,7 +1114,7 @@ impl DepGraphData {
1114
1114
if let Some ( task_deps) = icx. task_deps {
1115
1115
let mut task_deps = task_deps. lock ( ) ;
1116
1116
if cfg ! ( debug_assertions) {
1117
- self . current . total_read_count . fetch_add ( 1 , SeqCst ) ;
1117
+ self . current . total_read_count . fetch_add ( 1 , Relaxed ) ;
1118
1118
}
1119
1119
if task_deps. read_set . insert ( source) {
1120
1120
task_deps. reads . push ( source) ;
@@ -1134,7 +1134,7 @@ impl DepGraphData {
1134
1134
}
1135
1135
}
1136
1136
} else if cfg ! ( debug_assertions) {
1137
- self . current . total_duplicate_read_count . fetch_add ( 1 , SeqCst ) ;
1137
+ self . current . total_duplicate_read_count . fetch_add ( 1 , Relaxed ) ;
1138
1138
}
1139
1139
}
1140
1140
} )
You can’t perform that action at this time.
0 commit comments