-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Init codegen during sysimg restore. #41676
Conversation
The state of the sysimg is still indeterminate at this point. You cannot access it externally (in codegen) until it is finished. |
Ok, is there a way we can split up |
init_codegen is fine (it is pretty much free of external state), the |
What state hasn't been set up at that point? |
@vtjnash Care to elaborate? How else would you propose fixing this, try to make |
Jeff pointed out offline that this is happening after deserialize, but that it is just poorly named |
OK, thanks! |
(cherry picked from commit 2fbeef8)
Fixes #41670. Restores the old order of jl_init->jl_load_sysimg->jl_init_codegen, which was changed in https://github.com/JuliaLang/julia/pull/40715/files#diff-0e5a5cdf744ddbc1c815bf0a767bc9988e37d88792e8acc95c7ed9863491f2afL1797, because deserializing a system image might require the code generator to be initialized (deserializing ccallables calls jl_compile_extern_c).