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: clear dep analysis when module loading is done #27204

Merged
merged 11 commits into from
Dec 5, 2024

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Dec 3, 2024

Closes #26663

@bartlomieju bartlomieju changed the title chore: upgrade deno_core fix: clear dep analysis when module loading is done Dec 3, 2024
cli/module_loader.rs Outdated Show resolved Hide resolved
cli/module_loader.rs Outdated Show resolved Hide resolved
@bartlomieju bartlomieju requested a review from dsherret December 4, 2024 12:13
@bartlomieju
Copy link
Member Author

Release deno_core before landing this one

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Nice. LGTM!

@bartlomieju bartlomieju enabled auto-merge (squash) December 4, 2024 20:43
@@ -248,6 +248,9 @@ impl InFlightModuleLoadsTracker {
let parsed_source_cache = parsed_source_cache.clone();
let timeout = self.cleanup_task_timeout;
let task_handle = tokio::spawn(async move {
// NB(bartlomieju): we use a timeout here, which is defined to 10s,
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: I feel like we don't have to add attribution to comments like this. It's already in the git blame.

Copy link
Member Author

@bartlomieju bartlomieju Dec 4, 2024

Choose a reason for hiding this comment

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

I removed it, but it only works as long as this code is not moved between files. Then it becomes easy to have a really hard time tracking who wrote the comment.

@bartlomieju bartlomieju merged commit ab4568a into denoland:main Dec 5, 2024
17 checks passed
@bartlomieju bartlomieju deleted the upgrade_deno_core branch December 5, 2024 18:54
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.

Dep analysis leaks memory
3 participants