-
-
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
Wait for profile peek task to stop before exit #51409
Wait for profile peek task to stop before exit #51409
Conversation
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.
Closes #51003
Before this precompiling DifferentialEquations I got
With this
|
I don't get it. Where do you see a |
You know more about this than I do, but just in case: in |
We can observe this does not seem to be the fix by generating an empty package:
|
I don't like this for many reasons. Such as it may not work. I found exit_on_sigint, and Julia exit is not always called to exit, rather the C function, and also that C function is exported, and if called should it also do this logic? First a question. When your main strict ends, is exit() or similar called? I couldn't locate, and think you would want it called in almost all situations when you exit. But I note C and C++ have many ways to exit a program, I would like to know how many Julia has, all the ways; e.g. similar to _Exit() and std::quick_exit()? https://en.cppreference.com/w/cpp/utility/program/quick_exit
I guess you need and want to have similar exit to C/C++'s default, I thought quick_exit would be faster/fastest, it seems not. I would like a very fast or immediate exit, and I fear that Tasks will take a long time to finish, or will not, deadlock. I suppose you still may not want to just abort by default but I would at least want to have that option. I like the ideal of https://en.wikipedia.org/wiki/Crash-only_software But since most software doesn't live up to this software (yet) then I guess Julia programs may need to allow Tasks to finish by default. It would be great if Julia itself would adopt that ideal however. It seems this is being implemented for Julia itself since Julia doesn't live up to it. |
Sorry, I should've closed this. It doesn't seem to be the issue. The issue appears to be |
Trying to help with spurious reports of #50873