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

Do not call rand during sysimage precompilation #56227

Merged
merged 2 commits into from
Oct 18, 2024
Merged

Conversation

giordano
Copy link
Contributor

This change by itself doesn't do anything significant on master, but when backported to the v1.11 branch it'll address #56177. However it'd be great if someone could tell why this fixes that issue, because it looks very unrelated.

@giordano giordano added compiler:precompilation Precompilation of modules bugfix This change fixes an existing bug labels Oct 18, 2024
@giordano giordano added the backport 1.11 Change should be backported to release-1.11 label Oct 18, 2024
@KristofferC KristofferC mentioned this pull request Oct 18, 2024
41 tasks
@IanButterworth IanButterworth added the merge me PR is reviewed. Merge when all tests are passing label Oct 18, 2024
@giordano giordano merged commit f36f342 into master Oct 18, 2024
6 of 8 checks passed
@giordano giordano deleted the mg/precompile-avx512 branch October 18, 2024 21:42
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Oct 18, 2024
giordano added a commit that referenced this pull request Oct 19, 2024
This change by itself doesn't do anything significant on `master`, but
when backported to the v1.11 branch it'll address #56177. However it'd
be great if someone could tell _why_ this fixes that issue, because it
looks very unrelated.

---------

Co-authored-by: Ian Butterworth <[email protected]>
(cherry picked from commit f36f342)
@giordano giordano removed the backport 1.11 Change should be backported to release-1.11 label Oct 19, 2024
KristofferC pushed a commit that referenced this pull request Oct 21, 2024
This change by itself doesn't do anything significant on `master`, but
when backported to the v1.11 branch it'll address #56177. However it'd
be great if someone could tell _why_ this fixes that issue, because it
looks very unrelated.

---------

Co-authored-by: Ian Butterworth <[email protected]>
@time foo()
@time foo()
# Not critical, but helps hide unrelated compilation from @time when using --trace-compile.
f55729() = Base.Experimental.@force_compile
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR works, but probably not for the reasons you intended. You're trying to using the local variable f55729 as a global, causing nothing to happen:
UndefVarError: `f55729` not defined in `Main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug compiler:precompilation Precompilation of modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants