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 {
501501 if cfg ! ( debug_assertions) {
502502 let current_dep_graph = & self . data . as_ref ( ) . unwrap ( ) . current ;
503503
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 ) ) )
506506 } else {
507507 None
508508 }
@@ -1114,7 +1114,7 @@ impl DepGraphData {
11141114 if let Some ( task_deps) = icx. task_deps {
11151115 let mut task_deps = task_deps. lock ( ) ;
11161116 if cfg ! ( debug_assertions) {
1117- self . current . total_read_count . fetch_add ( 1 , SeqCst ) ;
1117+ self . current . total_read_count . fetch_add ( 1 , Relaxed ) ;
11181118 }
11191119 if task_deps. read_set . insert ( source) {
11201120 task_deps. reads . push ( source) ;
@@ -1134,7 +1134,7 @@ impl DepGraphData {
11341134 }
11351135 }
11361136 } 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 ) ;
11381138 }
11391139 }
11401140 } )
You can’t perform that action at this time.
0 commit comments