-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move PROFQ_CHAN to a Session field #48691
Conversation
src/librustc_driver/driver.rs
Outdated
PROFQ_CHAN.set(&sess.profile_channel, || { | ||
compile_input_impl(trans, sess, cstore, input_path, input, outdir, output, addl_plugins, control) | ||
}) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this is the point were the Rayon thread pool is created in my branch. This is split out to its own function to avoid rightward drift (and merge conflicts).
@alexcrichton Can you release a version of |
46233b6
to
019b9a8
Compare
Sure! It's now published |
Would it be possible to move this into |
@alexcrichton I get this error if I try to use
@michaelwoerister It is used when no |
@Zoxc sounds like rust-lang/cargo#4127 |
That sounds good too. |
|
Do what you have to I think this query profiling infrastructure is in dire need of a refactoring. |
23307ee
to
7d3aaf9
Compare
I removed |
Looks good to me. Thank you, @Zoxc! r=me once travis passes. |
☔ The latest upstream changes (presumably #48611) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r=michaelwoerister |
📌 Commit 97b23a0 has been approved by |
☔ The latest upstream changes (presumably #46882) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r=michaelwoerister |
📌 Commit 4ab6367 has been approved by |
☔ The latest upstream changes (presumably #48860) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r=michaelwoerister |
📌 Commit 184fd32 has been approved by |
⌛ Testing commit 184fd32 with merge c4b30439801c581bcc4da232971bc79d22893e8e... |
💔 Test failed - status-travis |
Move PROFQ_CHAN to a Session field r? @michaelwoerister
☀️ Test successful - status-appveyor, status-travis |
r? @michaelwoerister