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 {
497497 let current_dep_graph = & self . data . as_ref ( ) . unwrap ( ) . current ;
498498
499499 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 ) ,
502502 ) )
503503 } else {
504504 None
@@ -1111,7 +1111,7 @@ impl DepGraphData {
11111111 if let Some ( task_deps) = icx. task_deps {
11121112 let mut task_deps = task_deps. lock ( ) ;
11131113 if cfg ! ( debug_assertions) {
1114- self . current . total_read_count . fetch_add ( 1 , SeqCst ) ;
1114+ self . current . total_read_count . fetch_add ( 1 , Relaxed ) ;
11151115 }
11161116 if task_deps. read_set . insert ( source) {
11171117 task_deps. reads . push ( source) ;
@@ -1129,7 +1129,7 @@ impl DepGraphData {
11291129 }
11301130 }
11311131 } 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 ) ;
11331133 }
11341134 }
11351135 } )
You can’t perform that action at this time.
0 commit comments