@@ -530,20 +530,23 @@ function generate_opaque_closure(config::CompilerConfig, src::CodeInfo,
530
530
mi = ccall (:jl_specializations_get_linfo , Ref{MethodInstance},
531
531
(Any, Any, Any), meth, full_sig, Core. svec ())
532
532
job = CompilerJob (mi, config) # this captures the current world age
533
+ Base. @atomic meth. primary_world = job. world
534
+ Base. @atomic meth. deleted_world = typemax (UInt)
533
535
534
536
# create a code instance and store it in the cache
535
537
interp = GPUCompiler. get_interpreter (job)
536
538
owner = Core. Compiler. cache_owner (interp)
537
539
exctype = Any
538
540
inferred_const = C_NULL
541
+ inferred = src
539
542
const_flags = Int32 (0 )
540
543
min_world = meth. primary_world
541
- max_world = typemax (UInt)
544
+ max_world = meth . deleted_world
542
545
ipo_effects = UInt32 (0 )
543
546
effects = UInt32 (0 )
544
547
analysis_results = nothing
545
548
relocatability = UInt8 (0 )
546
- ci = CodeInstance (mi, owner, rt, exctype, inferred_const, const_flags ,
549
+ ci = CodeInstance (mi, owner, rt, exctype, inferred_const, inferred ,
547
550
const_flags, min_world, max_world, ipo_effects, effects,
548
551
analysis_results, relocatability, src. debuginfo)
549
552
Core. Compiler. setindex! (GPUCompiler. ci_cache (job), ci, mi)
0 commit comments