Skip to content

Refactor Linear Algebra's matmul to use a safer scratch buffer #500

Closed
@danielwe

Description

@danielwe

https://github.com/JuliaLang/julia/blob/54adf2193a6ea1b10cd1a184a7ba863aa985eede/stdlib/LinearAlgebra/src/matmul.jl#L536
https://github.com/JuliaLang/julia/blob/54adf2193a6ea1b10cd1a184a7ba863aa985eede/stdlib/LinearAlgebra/src/matmul.jl#L558

I stumbled upon these two comments while perusing the base linalg code. Related statement in JuliaLang/julia#23914, where they were introduced:

Also marked a few even more invalid places where managed pointer is passed to unsafe_wrap (the fix for those will be much more involved).

Not terribly reassuring seeing this in production code, so I figured it deserved an open issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions