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

Fix various warnings with JL_TIMING enabled #49770

Merged
merged 3 commits into from
May 12, 2023

Conversation

topolarity
Copy link
Member

This change fixes:

The uninit usage analyzer appears to be thrown off by the
`__attribute__((cleanup(*)))` used by the `JL_TIMING` macro, so work
around it by explicitly initializing `last_alloc`.
This fallback is most likely to kick in on VM's that may not have
support for the rdtsc instruction.

The loss in timer fidelity can be pretty severe (8 ns -> 15.6 ms)
but we pack lots of other metadata into our traces, so it can still
be useful to run with the fallback (and forcefully crashing the
application as Tracy does now is just not the Julian way to
communicate a hard error anyway)
@topolarity topolarity merged commit 8d0282c into JuliaLang:master May 12, 2023
@topolarity topolarity deleted the fix-timing-warnings branch May 12, 2023 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants