Skip to content

Commit

Permalink
Update base/compiler/typeinfer.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly authored Dec 30, 2022
1 parent 979ad5f commit b34a421
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion base/compiler/typeinfer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ function finish_timing_profile(timing::Timing)
ccall(:jl_typeinf_profiling_push_timing, Cvoid, (Any, Any,), _finished_timings, timing)
end

# TODO(PR): Comment this vector, explain that it should only be accessed thru C.
# DO NOT ACCESS DIRECTLY. This vector should only be accessed through the
# functions above. It is a buffer that lives in the Julia module only to be *rooted*
# for GC, but all accesses to the vector must go through C code, in order to be
# thread safe.
const _finished_timings = Timing[]

# We keep a stack of the Timings for each of the MethodInstances currently being timed.
Expand Down

0 comments on commit b34a421

Please sign in to comment.