]> git.kaiwu.me - njs.git/commit
Modules: removed extra VMs creation when it is not needed.
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 12 Oct 2024 00:23:42 +0000 (17:23 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Mon, 14 Oct 2024 23:51:54 +0000 (16:51 -0700)
commit685b64f0326ac63a1deda3c9bdad61ad521990a7
treee5eed03f39d1f1cad1f8191fd7674dbe4bf3670e
parent6902aaa17d8a2f30c44f2ed0ed165605233a2c6d
Modules: removed extra VMs creation when it is not needed.

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 9b674412 (0.8.6).

This fixes #795 issue on Github.
nginx/ngx_js.c