rcore-os / rcore-os/rCore-Tutorial-v3

尽量避免显式drop

Open
#109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
2.1k
Forks
560
PR merge metrics
No merged PRs in 30d

Description

目前各分支上仍存在一些手动drop,其中有些是不必要的,与调度相关的必要的drop也可以通过类似于ch9分支上的exclusive_session接口来规避。无需手动drop是Rust相比C语言的一大优势,要考虑或借鉴一种更好的设计达成这一目标。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the manual drop sites across the branches and compare the scheduling-related cases with the exclusive_session interface on the ch9 branch. Determine which drops are unnecessary and whether that interface supports a better design. Done means reducing or avoiding manual drops without changing the intended scheduling behavior, but the issue names no specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.