File tree Expand file tree Collapse file tree 2 files changed +8
-23
lines changed Expand file tree Collapse file tree 2 files changed +8
-23
lines changed Original file line number Diff line number Diff line change 3636 end
3737
3838 if Base. generating_output ()
39- pkgreplmode_precompile ()
39+ ccall (:jl_tag_newly_inferred_enable , Cvoid, ())
40+ try
41+ pkgreplmode_precompile ()
42+ finally
43+ ccall (:jl_tag_newly_inferred_disable , Cvoid, ())
44+ end
4045 end
4146
4247end # let
Original file line number Diff line number Diff line change @@ -214,32 +214,12 @@ let
214214 return nothing
215215 end
216216
217- # Copied from REPL (originally PrecompileTools.jl)
218- function check_edges (node)
219- parentmi = node. mi_info. mi
220- for child in node. children
221- childmi = child. mi_info. mi
222- if ! (isdefined (childmi, :backedges ) && parentmi ∈ childmi. backedges)
223- Base. precompile (childmi. specTypes)
224- end
225- check_edges (child)
226- end
227- return
228- end
229-
230217 if Base. generating_output () && Base. JLOptions (). use_pkgimages != 0
231- Core. Compiler. Timings. reset_timings ()
232- Core. Compiler. __set_measure_typeinf (true )
218+ ccall (:jl_tag_newly_inferred_enable , Cvoid, ())
233219 try
234220 pkg_precompile ()
235221 finally
236- Core. Compiler. __set_measure_typeinf (false )
237- Core. Compiler. Timings. close_current_timer ()
238- end
239- roots = Core. Compiler. Timings. _timings[1 ]. children
240- for child in roots
241- Base. precompile (child. mi_info. mi. specTypes)
242- check_edges (child)
222+ ccall (:jl_tag_newly_inferred_disable , Cvoid, ())
243223 end
244224 end
245225end
You can’t perform that action at this time.
0 commit comments