-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- https://github.com/arceos-org/linked_list_r4l 基于 Rust for Linux 的 linked_list.rs
- 该 R4L 的代码处于 rust 分支,两年前就停止开发了;目前 R4L 的开发处于 rust-next 分支 (主线代码 | 最新 API 文档)
- 需要对比 linked_list_r4l 和当时的 R4L 的代码差异
- 需要对比 R4L 当时和现在的 linked_list 实现差异
- 一个 2022 年 Cursor API unsound 的旧讨论:Linked List
CursorMutunsoundness Rust-for-Linux/linux#944 - 主线代码只将
Arc<T>作为链表节点的数据指针,并对 Cursor、Iter 等结构提供&T而 不再暴露&mut T
- 一个 2022 年 Cursor API unsound 的旧讨论:Linked List
- 需要考虑能否检测当前 R4L 的 linked_list 代码(或者 R4L 对 Miri 的使用情况)
- R4L 2021 年的时候,搜集过几个 Miri 的问题: Miri wanted features & bugfixes Rust-for-Linux/linux#397
- 但 R4L 没有将 Miri 应用起来,在 zulipchat 上也几乎没有讨论
something like &mut foo as *mut T as *const T as *mut T is entirely harmless. What is relevant is the initial cast, when a reference is turned to a raw pointer.
Metadata
Metadata
Assignees
Labels
No labels