File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,13 @@ Base.Experimental.@MethodTable(GLOBAL_METHOD_TABLE)
268
268
269
269
# # interpreter
270
270
271
+ @static if VERSION ≥ v " 1.11.0-DEV.1498"
272
+ import Core. Compiler: get_inference_world
273
+ using Base: get_world_counter
274
+ else
275
+ import Core. Compiler: get_world_counter, get_world_counter as get_inference_world
276
+ end
277
+
271
278
using Core. Compiler: OverlayMethodTable
272
279
const MTType = Core. MethodTable
273
280
if isdefined (Core. Compiler, :CachedMethodTable )
320
327
321
328
CC. InferenceParams (interp:: GPUInterpreter ) = interp. inf_params
322
329
CC. OptimizationParams (interp:: GPUInterpreter ) = interp. opt_params
323
- CC. get_world_counter (interp:: GPUInterpreter ) = interp. world
330
+ #= CC.=# get_inference_world (interp:: GPUInterpreter ) = interp. world
324
331
CC. get_inference_cache (interp:: GPUInterpreter ) = interp. inf_cache
325
332
CC. code_cache (interp:: GPUInterpreter ) = WorldView (interp. code_cache, interp. world)
326
333
471
478
# HACK: in older versions of Julia, `jl_create_native` doesn't take a world argument
472
479
# but instead always generates code for the current world. note that this doesn't
473
480
# actually change the world age, but just spoofs the counter `jl_create_native` reads.
481
+ # XXX : Base.get_world_counter is supposed to be monotonically increasing and is runtime global.
474
482
macro in_world (world, ex)
475
483
quote
476
484
actual_world = Base. get_world_counter ()
You can’t perform that action at this time.
0 commit comments