You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andy Grove (Jira)" <ji...@apache.org> on 2021/01/06 17:58:00 UTC

[jira] [Updated] (ARROW-10974) [Rust] Document use of unsafe in memory.rs

     [ https://issues.apache.org/jira/browse/ARROW-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Grove updated ARROW-10974:
-------------------------------
    Fix Version/s:     (was: 3.0.0)

> [Rust] Document use of unsafe in memory.rs
> ------------------------------------------
>
>                 Key: ARROW-10974
>                 URL: https://issues.apache.org/jira/browse/ARROW-10974
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: Rust
>            Reporter: Andy Grove
>            Priority: Major
>
> There are ~10 uses of unsafe in memory.rs and we should document them according to the guidelines in the Arrow crate README
>  
> {code:java}
> // JUSTIFICATION
> //  Benefit
> //      Describe the benefit of using unsafe. E.g.
> //      "30% performance degradation if the safe counterpart is used, see bench X."
> //  Soundness
> //      Describe why the code remains sound (according to the definition of rust's unsafe code guidelines). E.g.
> //      "We bounded check these values at initialization and the array is immutable."
> let ... = unsafe { ... }; {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)