Skip to content
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

Backport parallel marking #27

Closed
wants to merge 1 commit into from

Conversation

d-netto
Copy link
Member

@d-netto d-netto commented Aug 6, 2023

Backport of JuliaLang's multithreaded GC (parallel marking).

X-ref: JuliaLang#48600.

@d-netto d-netto force-pushed the dcn/backport-parallel-marking branch from 48bab12 to 0322764 Compare August 7, 2023 00:16
@d-netto d-netto requested a review from kpamnany August 7, 2023 20:28
kpamnany pushed a commit that referenced this pull request Aug 9, 2023
It's possible for PiNodes to effectively imply statically the condition
of a Core.ifelse. For example:
```julia
    23 ─ %60  = Core.ifelse(%47, false, true)::Bool
    │    %61  = Core.ifelse(%47, %58, false)::Union{Missing, Bool}
    25 ─        goto #27 if not %60
    26 ─ %65  = π (%61, Bool)
    └───        ...
```

In basic block #26, the PiNode gives us enough information to conclude
that `%47 === false` if control flow reaches that point. The previous
code incorrectly assumed that this kind of pruning would only be done
for PhiNodes.

Resolves JuliaLang#50276
@d-netto d-netto force-pushed the dcn/backport-parallel-marking branch 6 times, most recently from ad7b88d to 6e370da Compare August 28, 2023 13:45
@d-netto d-netto force-pushed the dcn/backport-parallel-marking branch 2 times, most recently from 4bff13a to 4ec3701 Compare September 4, 2023 13:04
src/threading.c Outdated Show resolved Hide resolved
@d-netto d-netto force-pushed the dcn/backport-parallel-marking branch from 4ec3701 to 071c4c8 Compare September 6, 2023 15:38
@d-netto
Copy link
Member Author

d-netto commented Sep 6, 2023

Apparently we can't use slashes on branch names with the latest changes in the backport process.

Will close this PR and open a new one with a different branch name.

@d-netto d-netto closed this Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants