Skip to content

Commit 9bfd2c9

Browse files
committed
rem dbg
1 parent c54b1bb commit 9bfd2c9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/librustc/ty/maps/job.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ impl<'tcx> QueryJob<'tcx> {
9898
cycle: None,
9999
condvar: Condvar::new(),
100100
};
101-
eprintln!("[{:?}] await query {:?} condvar: {:x}",
101+
/*eprintln!("[{:?}] await query {:?} condvar: {:x}",
102102
::std::thread::current().id(),
103103
self.info.query,
104-
&waiter.condvar as *const _ as usize);
104+
&waiter.condvar as *const _ as usize);*/
105105
self.latch.await(tcx, &mut waiter);
106106

107107
match waiter.cycle {
@@ -149,9 +149,9 @@ impl<'tcx> QueryJob<'tcx> {
149149
/// This does nothing for single threaded rustc,
150150
/// as there are no concurrent jobs which could be waiting on us
151151
pub fn signal_complete(&self, tcx: TyCtxt<'_, 'tcx, '_>) {
152-
eprintln!("[{:?}] complete query {:?}",
152+
/*eprintln!("[{:?}] complete query {:?}",
153153
::std::thread::current().id(),
154-
self.info.query);
154+
self.info.query);*/
155155
#[cfg(parallel_queries)]
156156
self.latch.set(tcx);
157157
}
@@ -168,11 +168,11 @@ struct QueryWaiter<'a, 'tcx: 'a> {
168168
#[cfg(parallel_queries)]
169169
impl<'a, 'tcx> QueryWaiter<'a, 'tcx> {
170170
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);
172172
eprintln!("[{:?}] (wake) active threads: {} condvar: {:x}",
173173
::std::thread::current().id(),
174174
tcx.active_threads.load(Ordering::SeqCst),
175-
&self.condvar as *const _ as usize);
175+
&self.condvar as *const _ as usize);*/
176176
rayon_core::unblock(registry);
177177
self.condvar.notify_one();
178178
}
@@ -208,7 +208,7 @@ impl QueryLatch {
208208
#[allow(mutable_transmutes)]
209209
info.waiters.push(mem::transmute(waiter));
210210
}
211-
if tcx.active_threads.fetch_sub(1, Ordering::SeqCst) == 1 {
211+
/*if tcx.active_threads.fetch_sub(1, Ordering::SeqCst) == 1 {
212212
/*
213213
// We are the last active thread, waiting here would cause a deadlock.
214214
// Spawn a thread to handle the deadlock before we go to sleep
@@ -218,7 +218,7 @@ impl QueryLatch {
218218
eprintln!("[{:?}] (await) active threads: {} condvar: {:x}",
219219
::std::thread::current().id(),
220220
tcx.active_threads.load(Ordering::SeqCst),
221-
&waiter.condvar as *const _ as usize);
221+
&waiter.condvar as *const _ as usize);*/
222222
rayon_core::block();
223223
waiter.condvar.wait(&mut info);
224224
}

0 commit comments

Comments
 (0)