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: use invokelatest for easy_hook, avoid race #241

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

tanmaykm
Copy link
Member

  • uses Base.invokelatest while invoking easy_hook methods because the downloads instance and callbacks may be in different world ages.
  • stores the easy_hook in local var to avoid races that cn happen between checking and invoking

fixes #240

- uses `Base.invokelatest` while invoking `easy_hook` methods because the downloads instance and callbacks may be in different world ages.
- stores the `easy_hook` in local var to avoid races that cn happen between checking and invoking

fixes JuliaLang#240
@tanmaykm
Copy link
Member Author

tanmaykm commented Jun 5, 2024

The CI failures look unrelated.
Could someone take a look? It will be good to have this merged!

@StefanKarpinski StefanKarpinski merged commit 51e5321 into JuliaLang:master Jun 5, 2024
15 of 18 checks passed
@StefanKarpinski
Copy link
Member

I don't understand why GitHub has made it absolutely impossible to rerun failed CI jobs, but decoded to yolo it here after spending 15 minutes looking for some kind of rerun job button.

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 this pull request may close these issues.

easy_hook invocation can run into worldage issue
3 participants