-
-
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
Make cache mismatch log more informative #48168
Make cache mismatch log more informative #48168
Conversation
@@ -621,6 +621,7 @@ JL_DLLEXPORT uint8_t jl_cache_flags(void) | |||
flags |= (jl_options.opt_level & 3) << 4; | |||
// NOTES: | |||
// In contrast to check-bounds, inline has no "observable effect" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw @vchuravy, what does this mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm... That I have not used --inline
ever.
We should probably still split the cache since if you accidentially compile a pkgimg with --inline
it will poison the cache due to
Line 140 in de73c26
`--compiled-modules`, `--inline`, `--check-bounds`, `--optimize`, `-g`, |
Line 1947 in de73c26
io = open(pipeline(addenv(`$(julia_cmd(;cpu_target)::Cmd) $(opts) |
My original reasoning was that whether we inline or not is not an observable effect, since it is a pure optimization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will poison the cache due to
Yeah, I was thinking if you run with --inline=no
you poison it with very slow code.
Backportable to 1.9? |
Is there an easy way to get more debug info out of this cache miss point? Why they can't be loaded etc. Line 2538 in de73c26
|
Not easily no. This relates to multi-versioning and means that the cache file created is not compatible to the current sysimages. |
@vchuravy RTM? |
(cherry picked from commit 0847a7f)
Master
This PR