-
Notifications
You must be signed in to change notification settings - Fork 443
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
fix(interactive): fix memory leak in pegasus #3367
Conversation
@@ -131,7 +131,12 @@ impl<D: Data, T: Debug + Send + 'static> Worker<D, T> { | |||
} | |||
|
|||
fn release(&mut self) { | |||
self.peer_guard.fetch_sub(1, Ordering::SeqCst); | |||
if self.peer_guard.fetch_sub(1, Ordering::SeqCst) == 1 { | |||
pegasus_memory::alloc::remove_task(self.conf.job_id as usize); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bmmcq This usage of alloc::remove_task
is not correct, right?
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3367 +/- ##
=======================================
Coverage 41.04% 41.04%
=======================================
Files 109 109
Lines 11298 11298
=======================================
Hits 4637 4637
Misses 6661 6661 Continue to review full report in Codecov by Sentry.
|
What do these changes do?
Related issue number
Fixes
#3366