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

Modules: removed extra VMs creation when it is not needed. #798

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

xeioex
Copy link
Contributor

@xeioex xeioex commented Oct 12, 2024

No description provided.

Previously, a new VM instance was created for every location. This is
not needed and consumes a lot of memory for large configurations.
Instead, if no new js_import is introduced on the location level server
level VM should be used.

The issue was introduced in 9b67441 (0.8.6).

This fixes nginx#795 issue on Github.
Found by Clang static analyzer.
Copy link
Contributor

@VadimZhestikov VadimZhestikov left a comment

Choose a reason for hiding this comment

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

Looks good

@xeioex xeioex merged commit 8759db7 into nginx:master Oct 14, 2024
1 check passed
@xeioex xeioex deleted the fix_vm_caching branch October 14, 2024 23:51
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.

2 participants