Skip to content

Commit f5a0645

Browse files
authored
Merge pull request #365 from JuliaGPU/jps/no-entry-safepoints
irgen: Disable fn entry safepoints
2 parents 073efe3 + d8e725d commit f5a0645

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/jlgen.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,17 @@ function compile_method_instance(@nospecialize(job::CompilerJob),
361361

362362
# set-up the compiler interface
363363
debug_info_kind = llvm_debug_info(job)
364-
params = Base.CodegenParams(;
364+
cgparams = (;
365365
track_allocations = false,
366366
code_coverage = false,
367367
prefer_specsig = true,
368368
gnu_pubnames = false,
369369
debug_info_kind = Cint(debug_info_kind),
370370
lookup = Base.unsafe_convert(Ptr{Nothing}, lookup_cb))
371+
@static if VERSION >= v"1.9.0-DEV.1660"
372+
cgparams = merge(cgparams, (;safepoint_on_entry = false))
373+
end
374+
params = Base.CodegenParams(;cgparams...)
371375

372376
# generate IR
373377
GC.@preserve lookup_cb begin

0 commit comments

Comments
 (0)