Skip to content

Commit df4293e

Browse files
committed
Remove hack.
1 parent a94e6e2 commit df4293e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/jlgen.jl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -543,23 +543,6 @@ end
543543
CompilationPolicyExtern = 1
544544
end
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

0 commit comments

Comments
 (0)