-
-
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
remove unused roottask
constant
#31983
Conversation
Removing an unused variable breaks everything. Classic 😂 It looks like the system image writer is depending on there being a reference to this; will fix it. |
6fd6287
to
4c09972
Compare
LOL, this would have made #31948 easier. I was wondering where that reference was popping up from. You could now just drop all references to |
In JavaCall.jl, we use the |
As long as we are not removing I suggested in #35726 that the API should be a method, There's some concern that the concept of a root Should the concept of a root |
I just ran into this also. Having this magic object that needs special magic in the serializer is very unfortunate. We should get rid of it if we can. |
We just need a way to detect if the current task is the root task to prevent JavaCall.jl from crashing Julia. The following would be sufficient if function is_root_task(task = current_task())
task == ccall(:jl_get_root_task, Ref{Task}, ())
end That depends on Lines 753 to 757 in 107901d
jl_get_root_task is currently only defined if JL_HAVE_ASYNCIFY .
|
This doesn't seem to be used anywhere and must be quite obsolete.