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

fix(interactive): fix memory leak in pegasus #3367

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Conversation

lnfjpt
Copy link
Collaborator

@lnfjpt lnfjpt commented Nov 20, 2023

What do these changes do?

Related issue number

Fixes
#3366

@@ -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);
Copy link
Collaborator

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?

siyuan0322
siyuan0322 previously approved these changes Nov 21, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #3367 (5728325) into main (9c227dd) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c227dd...5728325. Read the comment docs.

@longbinlai longbinlai self-requested a review November 21, 2023 04:40
@longbinlai longbinlai merged commit 2657681 into alibaba:main Nov 21, 2023
29 checks passed
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.

4 participants