-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Disambiguate get_world_counter and get_inference_world #53088
Conversation
I just noticed that Line 32 in 1442303
|
Why does the interp have a get_world_counter function? This isn't supposed to be a fixed value, but rather the maximum observable value of jl_world_counter at the start of inference (preventing a data race on that value from leaking into making incorrect optimization results) |
To enable that exactly? |
6094c1b
to
c179c16
Compare
@vtjnash explained to me yesterday that I confused it with |
get_world_counter
uses interp max_world… captured typemax(UInt)
5e5c4d2
to
c6b8ded
Compare
* adjust to JuliaLang/julia#53088 * update `[benchmark|docs]/Manifest.toml`
Adjust for upstream JuliaLang/julia#53088
@gbaraldi and I were looking through the code today and we were surprised by the usages ofget_world_counter
.Inference is primarily executed in a frozen world-age so
get_world_counter
is often fixed to bejl_typeinf_world
,in most cases it seems we should be using
get_world_counter(interp)
.Add brief docs to
Base.get_world_counter
and addBase.tls_wold_age
. Furthermore to disambiguateget_world_counter
from the inference world rename the abstract interpreter accessor toget_inference_world