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

Check dynamic dispatch #5

Closed
YingboMa opened this issue Oct 2, 2023 · 1 comment · Fixed by #36
Closed

Check dynamic dispatch #5

YingboMa opened this issue Oct 2, 2023 · 1 comment · Fixed by #36
Milestone

Comments

@YingboMa
Copy link

YingboMa commented Oct 2, 2023

Maybe add a check_dynamic_dispatch function that only checks the presence of dynamic dispatch?

@topolarity topolarity added this to the Public MVP milestone Oct 16, 2023
@topolarity
Copy link
Member

topolarity commented Nov 17, 2023

Once #36 lands this can be done with:

julia> foo() = rand(Any[1,1.0]) + true
julia> count(err isa AllocCheck.DynamicDispatch for err in check_allocs(foo, ()))
1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants