-
-
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: avoid an undesirable compiler optimization #42377
Conversation
I can confirm that this builds successfully on my system (#42346 (comment)). |
@jonas-schulze Just to clarify, this builds successfully on your system with Xcode 13, right? |
jl_current_task is not constant after this point in the function, so we split the function so that the compiler won't try to optimize it incorrectly (hoisting the JL_GC_PUSH to the top of the function for example). Fixes #42346
Does this need backporting? |
I'd really appreciate it if this could get backported. |
I'm going to add the backport labels for 1.6 and 1.7. @vtjnash let me know if that's not correct. |
Sorry -- I should've been more explicit. I'm currently experiencing build failures with Xcode 13 only on the |
jl_current_task is not constant after this point in the function, so we split the function so that the compiler won't try to optimize it incorrectly (hoisting the JL_GC_PUSH to the top of the function for example). Fixes JuliaLang#42346
jl_current_task is not constant after this point in the function, so we split the function so that the compiler won't try to optimize it incorrectly (hoisting the JL_GC_PUSH to the top of the function for example). Fixes JuliaLang#42346
jl_current_task is not constant after this point in the function, so we
split the function so that the compiler won't try to optimize it
incorrectly (hoisting the JL_GC_PUSH to the top of the function for
example).
Fixes #42346