Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New exec code path rebased rc opt #17

Open
wants to merge 130 commits into
base: new-exec-code-path-rebased-rc-opt-base
Choose a base branch
from

Conversation

ryoqun
Copy link
Owner

@ryoqun ryoqun commented Mar 23, 2024

Problem

Summary of Changes

Fixes #

Comment on lines +339 to 349
impl Task {
fn new(t: TaskInner) -> Self {
Task(MyRc::new(t))
}

#[must_use]
fn try_unblock(self: &Task, token: &mut BlockedPageCountToken) -> Option<Task> {
self.blocked_page_count_mut(token)
.decrement_self()
.is_zero()
.then(|| self.clone())
fn try_unblock(self: Task) -> Option<Task> {
//eprintln!("sc {}", MyRc::strong_count(&self.0));
(MyRc::strong_count(&self.0) == 1).then_some(self)
}
}
Copy link
Owner Author

@ryoqun ryoqun Mar 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here (context: solana-labs#35286 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant