File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 543543 CompilationPolicyExtern = 1
544544end
545545
546- # HACK: in older versions of Julia, `jl_create_native` doesn't take a world argument
547- # but instead always generates code for the current world. note that this doesn't
548- # actually change the world age, but just spoofs the counter `jl_create_native` reads.
549- # XXX : Base.get_world_counter is supposed to be monotonically increasing and is runtime global.
550- macro in_world (world, ex)
551- quote
552- actual_world = Base. get_world_counter ()
553- world_counter = cglobal (:jl_world_counter , Csize_t)
554- unsafe_store! (world_counter, $ (esc (world)))
555- try
556- $ (esc (ex))
557- finally
558- unsafe_store! (world_counter, actual_world)
559- end
560- end
561- end
562-
563546"""
564547 precompile(job::CompilerJob)
565548
You can’t perform that action at this time.
0 commit comments