Skip to content

Commit 73739a1

Browse files
authored
Apply suggestions from code review
1 parent c335d2e commit 73739a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/threadcall.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ macro threadcall(f, rettype, argtypes, argvals...)
4545
end
4646
push!(body, :(gc_state = ccall(:jl_gc_safe_enter, Int8, (), )))
4747
push!(body, :(ret = ccall(fptr, $rettype, ($(argtypes...),), $(args...))))
48-
push!(body, :(unsafe_store!(convert(Ptr{$rettype}, retval_ptr), ret)))
4948
push!(body, :(gc_state = ccall(:jl_gc_safe_leave, Cvoid, (Int8,), gc_state)))
49+
push!(body, :(unsafe_store!(convert(Ptr{$rettype}, retval_ptr), ret)))
5050
push!(body, :(return Int(Core.sizeof($rettype))))
5151

5252
# return code to generate wrapper function and send work request thread queue

0 commit comments

Comments
 (0)