mirror of
https://github.com/rui314/mold.git
synced 2024-12-27 10:23:41 +03:00
Avoid unnecessary copy
This commit is contained in:
parent
059269d0b6
commit
2fdfc8dd85
@ -119,7 +119,7 @@ static tbb::concurrent_vector<InputSection *> collect_root_set() {
|
||||
}
|
||||
|
||||
// Mark all reachable sections
|
||||
static void mark(tbb::concurrent_vector<InputSection *> roots) {
|
||||
static void mark(tbb::concurrent_vector<InputSection *> &roots) {
|
||||
Timer t("mark");
|
||||
|
||||
tbb::parallel_do(roots, [&](InputSection *isec, Feeder &feeder) {
|
||||
|
Loading…
Reference in New Issue
Block a user