]> git.kaiwu.me - njs.git/commit
Generator: release temporary compilation memory
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 3 Sep 2026 15:53:14 +0000 (08:53 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 10 Sep 2026 03:11:04 +0000 (20:11 -0700)
commitf560e1cf74630e2c1461b5da3748d5a02de426e1
treec2d649bf518e9a2263d08efbfdfb8d0d9e3c177f
parent1186361b4b8f638323067a7aa9932bf4c52e2e53
Generator: release temporary compilation memory

Use the parser invocation pool for generator stack entries, copied contexts,
blocks, jump patches, index caches, and traversal scratch.  Nested function
generators share the same temporary pool, while generated code and runtime
metadata remain in the VM pool.
src/njs_function.c
src/njs_generator.c
src/njs_generator.h
src/njs_parser.c
src/njs_parser.h
src/njs_vm.c