@@ -98,10 +98,10 @@ impl<'tcx> QueryJob<'tcx> {
98
98
cycle : None ,
99
99
condvar : Condvar :: new ( ) ,
100
100
} ;
101
- eprintln ! ( "[{:?}] await query {:?} condvar: {:x}" ,
101
+ /* eprintln!("[{:?}] await query {:?} condvar: {:x}",
102
102
::std::thread::current().id(),
103
103
self.info.query,
104
- & waiter. condvar as * const _ as usize ) ;
104
+ &waiter.condvar as *const _ as usize);*/
105
105
self . latch . await ( tcx, & mut waiter) ;
106
106
107
107
match waiter. cycle {
@@ -149,9 +149,9 @@ impl<'tcx> QueryJob<'tcx> {
149
149
/// This does nothing for single threaded rustc,
150
150
/// as there are no concurrent jobs which could be waiting on us
151
151
pub fn signal_complete ( & self , tcx : TyCtxt < ' _ , ' tcx , ' _ > ) {
152
- eprintln ! ( "[{:?}] complete query {:?}" ,
152
+ /* eprintln!("[{:?}] complete query {:?}",
153
153
::std::thread::current().id(),
154
- self . info. query) ;
154
+ self.info.query);*/
155
155
#[ cfg( parallel_queries) ]
156
156
self . latch . set ( tcx) ;
157
157
}
@@ -168,11 +168,11 @@ struct QueryWaiter<'a, 'tcx: 'a> {
168
168
#[ cfg( parallel_queries) ]
169
169
impl < ' a , ' tcx > QueryWaiter < ' a , ' tcx > {
170
170
fn notify ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > , registry : & rayon_core:: Registry ) {
171
- tcx. active_threads . fetch_add ( 1 , Ordering :: SeqCst ) ;
171
+ /* tcx.active_threads.fetch_add(1, Ordering::SeqCst);
172
172
eprintln!("[{:?}] (wake) active threads: {} condvar: {:x}",
173
173
::std::thread::current().id(),
174
174
tcx.active_threads.load(Ordering::SeqCst),
175
- & self . condvar as * const _ as usize ) ;
175
+ &self.condvar as *const _ as usize);*/
176
176
rayon_core:: unblock ( registry) ;
177
177
self . condvar . notify_one ( ) ;
178
178
}
@@ -208,7 +208,7 @@ impl QueryLatch {
208
208
#[ allow( mutable_transmutes) ]
209
209
info. waiters . push ( mem:: transmute ( waiter) ) ;
210
210
}
211
- if tcx. active_threads . fetch_sub ( 1 , Ordering :: SeqCst ) == 1 {
211
+ /* if tcx.active_threads.fetch_sub(1, Ordering::SeqCst) == 1 {
212
212
/*
213
213
// We are the last active thread, waiting here would cause a deadlock.
214
214
// Spawn a thread to handle the deadlock before we go to sleep
@@ -218,7 +218,7 @@ impl QueryLatch {
218
218
eprintln!("[{:?}] (await) active threads: {} condvar: {:x}",
219
219
::std::thread::current().id(),
220
220
tcx.active_threads.load(Ordering::SeqCst),
221
- & waiter. condvar as * const _ as usize ) ;
221
+ &waiter.condvar as *const _ as usize);*/
222
222
rayon_core:: block ( ) ;
223
223
waiter. condvar . wait ( & mut info) ;
224
224
}
0 commit comments