You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add accessors for current_task and safe_restore in TLS (#36064)
In code which may be compiled against one Julia version but then gets
loaded in another (e.g. due to an update), it is problematic to directly
access members of jl_ptls_t, as this structure frequently changes
between Julia versions
The existing accessor function `jl_get_current_task` helps to avoid this,
so make it public.
Note that the public macro `jl_current_task` exist, but since macros are
compiled into the code which includes `julia.h`, they do not deal with the
situation described above.
No alternatives currently exist for `jl_get_safe_restore` and
`jl_set_safe_restore`.
0 commit comments