Skip to content

Commit

Permalink
Avoid using @force_compile
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrobinson251 authored Dec 21, 2022
1 parent 3218a4e commit 718ed72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if VERSION < v"1.9.0-" # https://github.com/JuliaLang/julia/pull/47367
macro allocations(ex)
quote
Base.Experimental.@force_compile
while false; end # want to force compilation, but v1.6 doesn't have `@force_compile`
local stats = Base.gc_num()
$(esc(ex))
local diff = Base.GC_Diff(Base.gc_num(), stats)
Expand Down

0 comments on commit 718ed72

Please sign in to comment.