diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-10 17:29:11 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-10 17:29:11 +0100 |
| commit | 1e0902677f905e752b42e2f48dcda53141b78eee (patch) | |
| tree | 2d8975e6c8bf08585241163ebbb67da32c33a4d6 /src/main.cpp | |
| parent | 60684ff028fe4b0df1925d23d4ff05192f45faab (diff) | |
Multithread min dep set by removing the set itself
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index db4dee080..184b1eaac 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3050,7 +3050,8 @@ gb_internal void print_show_unused(Checker *c) { if (e->token.string == "_") { continue; } - if (ptr_set_exists(&info->minimum_dependency_set, e)) { + + if (e->min_dep_count.load(std::memory_order_relaxed) > 0) { continue; } array_add(&unused, e); |