about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-05 16:38:15 +0000
committerbors <bors@rust-lang.org>2018-04-05 16:38:15 +0000
commit7222241e7c2d7caf9ad6ee6e34748e4addfb8dd3 (patch)
tree307f491346376bb59d85e371c6c2a4fff1464b18 /src/libsyntax/parse
parent56714acc5eb0687ed9a7566fdebe5528657fc5b3 (diff)
parent4f7d0fde1c5f577c1f956d5d4edfbb202a5bc3cf (diff)
downloadrust-7222241e7c2d7caf9ad6ee6e34748e4addfb8dd3.tar.gz
rust-7222241e7c2d7caf9ad6ee6e34748e4addfb8dd3.zip
Auto merge of #49045 - Zoxc:tls, r=michaelwoerister
Make queries thread safe

This makes queries thread safe by removing the query stack and making queries point to their parents. Queries write to the query map when starting and cycles are detected by checking if there's already an entry in the query map. This makes cycle detection O(1) instead of O(n), where `n` is the size of the query stack.

This is mostly corresponds to the method I described [here](https://internals.rust-lang.org/t/parallelizing-rustc-using-rayon/6606).

cc @rust-lang/compiler

r? @michaelwoerister
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions