]> git.kaiwu.me - njs.git/commit
Memory pool: free page counter in a cluster
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 8 Sep 2026 22:48:47 +0000 (15:48 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 18 Sep 2026 20:42:16 +0000 (13:42 -0700)
commit9e7d2e32efa4bd60a582476d90b4ef4984aef159
tree3f93582cef7828bdab37f16e09d4bedba86d5b73
parent964fad174d57ce8280afe92a652140ebb846141e
Memory pool: free page counter in a cluster

Previously, releasing a page walked all pages of its cluster to test
whether the whole cluster had become free.

The fix is to keep the number of free pages in the cluster block.
src/njs_mp.c