about summary refs log tree commit diff
path: root/src/librustc/dep_graph/thread.rs
AgeCommit message (Collapse)AuthorLines
2017-07-10incr.comp.: Manage dependency graph on main thread.Michael Woerister-178/+0
2017-07-05use field init shorthand in src/librustcZack M. Davis-1/+1
The field init shorthand syntax was stabilized in 1.17.0 (aebd94f); we are now free to use it in the compiler.
2017-06-09incr.comp.: Uniformly represent DepNodes as (Kind, StableHash) pairs.Michael Woerister-8/+7
2017-01-17consistent doc wordingking6cong-1/+1
2016-10-18Don't enqueue onto a disabled dep_graph.Nicholas Nethercote-5/+14
This commit guards all calls to `DepGraphThreadData::enqueue` with a check to make sure it is enabled. This requires distinguishing between a "fully enabled" and an "enqueue-enabled" graph. This change avoids some useless allocation and vector manipulations when the graph is disabled (i.e. when incremental compilation is off) which improves speed by ~1% on some of the rustc-benchmarks.
2016-09-06implement a debugging "shadow graph"Niko Matsakis-28/+13
The shadow graph supercedes the existing code that checked for reads/writes without an active task and now adds the ability to filter for specific edges.
2016-07-01fix RUST_LOG, hopefully for real this timeAriel Ben-Yehuda-2/+0
2016-05-18add debug info to dep_graphNiko Matsakis-0/+3
2016-05-01dep_graph: avoid panicking in thread when channel closedGeorg Brandl-1/+4
On my system, when the processor is already loaded, and I try to run the test suite, e.g. compile-fail/dep-graph-assoc-type-trans.rs fails because of undecodable JSON. Running the compiler manually, I can see that the dep graph thread panics (and puts non-JSON on stderr) while `send`ing on `swap_out`, presumably because the other end has already quit. I think that in this case, we can just gracefully exit the thread.
2016-04-06break dep-graph into modules, parameterize DepNodeNiko Matsakis-7/+8
it is useful later to customize how change the type we use for reference items away from DefId
2016-03-31librustc: replace panic!() with bug!()Benjamin Herr-1/+1
2016-02-05Add a local counter that tracks how many tasks are pushed or not pushed,Niko Matsakis-4/+47
so that we can still get assertion failures even when dep-graph construction is disabled.
2016-01-06Fix numerous typos, renamings, and minor nits raised by mw.Niko Matsakis-1/+1
2016-01-05Introduce the DepGraph and DepTracking map abstractions,Niko Matsakis-0/+137
along with a README explaining how they are to be used