@@ -1279,13 +1279,12 @@ for (fname, elty) in ((:dger_,:Float64),
12791279 if m != length (x) || n != length (y)
12801280 throw (DimensionMismatch (" A has size ($m ,$n ), x has length $(length (x)) , y has length $(length (y)) " ))
12811281 end
1282- ccall ((@blasfunc ($ fname), libblastrampoline), Cvoid,
1282+ (px, stx), (py, sty) = ptrst1 (x), ptrst1 (y)
1283+ GC. @preserve x y ccall ((@blasfunc ($ fname), libblastrampoline), Cvoid,
12831284 (Ref{BlasInt}, Ref{BlasInt}, Ref{$ elty}, Ptr{$ elty},
12841285 Ref{BlasInt}, Ptr{$ elty}, Ref{BlasInt}, Ptr{$ elty},
12851286 Ref{BlasInt}),
1286- m, n, α, x,
1287- stride (x, 1 ), y, stride (y, 1 ), A,
1288- max (1 ,stride (A,2 )))
1287+ m, n, α, px, stx, py, sty, A, max (1 ,stride (A,2 )))
12891288 A
12901289 end
12911290 end
@@ -1312,11 +1311,11 @@ for (fname, elty, lib) in ((:dsyr_,:Float64,libblastrampoline),
13121311 if length (x) != n
13131312 throw (DimensionMismatch (" A has size ($n ,$n ), x has length $(length (x)) " ))
13141313 end
1315- ccall ((@blasfunc ($ fname), $ lib), Cvoid,
1314+ px, stx = ptrst1 (x)
1315+ GC. @preserve x ccall ((@blasfunc ($ fname), $ lib), Cvoid,
13161316 (Ref{UInt8}, Ref{BlasInt}, Ref{$ elty}, Ptr{$ elty},
13171317 Ref{BlasInt}, Ptr{$ elty}, Ref{BlasInt}),
1318- uplo, n, α, x,
1319- stride (x, 1 ), A, max (1 ,stride (A, 2 )))
1318+ uplo, n, α, px, stx, A, max (1 ,stride (A, 2 )))
13201319 A
13211320 end
13221321 end
@@ -1342,11 +1341,11 @@ for (fname, elty, relty) in ((:zher_,:ComplexF64, :Float64),
13421341 if length (x) != n
13431342 throw (DimensionMismatch (" A has size ($n ,$n ), x has length $(length (x)) " ))
13441343 end
1345- ccall ((@blasfunc ($ fname), libblastrampoline), Cvoid,
1344+ px, stx = ptrst1 (x)
1345+ GC. @preserve x ccall ((@blasfunc ($ fname), libblastrampoline), Cvoid,
13461346 (Ref{UInt8}, Ref{BlasInt}, Ref{$ relty}, Ptr{$ elty},
13471347 Ref{BlasInt}, Ptr{$ elty}, Ref{BlasInt}, Clong),
1348- uplo, n, α, x,
1349- stride (x, 1 ), A, max (1 ,stride (A,2 )), 1 )
1348+ uplo, n, α, px, stx, A, max (1 ,stride (A,2 )), 1 )
13501349 A
13511350 end
13521351 end
0 commit comments