Split join_codegen_and_link() into two steps#68601
Split join_codegen_and_link() into two steps#68601bors merged 1 commit intorust-lang:masterfrom 0dvictor:split
join_codegen_and_link() into two steps#68601Conversation
|
r? @varkor (rust_highfive has picked a reviewer for you, use r? to override) |
|
r? @tmandry |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
bjorn3
left a comment
There was a problem hiding this comment.
Just a few comments, but looks great otherwise.
src/librustc_interface/queries.rs
Outdated
There was a problem hiding this comment.
This drops dep_graph before linking now, so this should reduce memory consumption during linking.
|
You will need to update the |
src/librustc_interface/queries.rs
Outdated
There was a problem hiding this comment.
This is introducing a stall inside what looks kind of like an accessor, when there wasn't one before. I think there should be a comment on the function, at least. Also, double check that this doesn't seem like a problem at any call sites.
There was a problem hiding this comment.
Good point, and after a second thought, I think it makes more sense to keep join_codegen in where join_codegen_and_link was, so that behavior changes should be minimized.
I add a commit to the PR moving join_codegen into Linker::link to demonstrate the change, could you take a look?
There was a problem hiding this comment.
BTW, we can still drop dep_graph before calling backend to link, so we should reduce similar memory consumption during linking, as if we join codegen inside Queries::linker().
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
@bors r+ |
|
📌 Commit ff1a5a1f613a9ca42fa0ddcaf23da086f0cae390 has been approved by |
`join_codegen_and_link()` is split to `join_codegen()` and `link()`.
|
@bors r+ |
|
📌 Commit ae51d2b has been approved by |
Split `join_codegen_and_link()` into two steps `join_codegen_and_link()` is split to `join_codegen()` and `link()`.
|
☀️ Test successful - checks-azure |
join_codegen_and_link()is split tojoin_codegen()andlink().