]> git.kaiwu.me - njs.git/commitdiff
Tests: size lifetime test zones for 64K pages
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 19 Nov 2026 06:09:54 +0000 (22:09 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 19 Nov 2026 06:44:10 +0000 (22:44 -0800)
The lifetime tests added in aaaf5712 configure 32k shared dict zones,
but nginx requires at least eight pages per zone. On systems with
64 KiB pages, nginx rejects both test configurations at startup.

Use 512k for the two scopes zones. They only exchange test results
and do not exercise dictionary capacity or eviction.

nginx/t/js_http_lifetime_scopes.t
nginx/t/stream_js_object_lifetime.t

index c9ae9c10b5e369240da24729d3fd02de255f9a9b..71d523cd1897d047ba64641099fadce3f7db08c8 100644 (file)
@@ -38,7 +38,7 @@ http {
     js_context_reuse 1;
     js_import test.js;
     js_var $test_value original;
-    js_shared_dict_zone zone=scopes:32k;
+    js_shared_dict_zone zone=scopes:512k;
 
     server {
         listen       127.0.0.1:8080;
index 82901db1c96c9ec8f9d047d70a451bca5b53b40e..5c69c34c30007009ee449800bc926d0aae6e8837 100644 (file)
@@ -41,7 +41,7 @@ stream {
     js_var $test_value original;
     js_var $result;
     js_set $engine test.engine;
-    js_shared_dict_zone zone=scopes:32k;
+    js_shared_dict_zone zone=scopes:512k;
 
     server {
         listen      127.0.0.1:8081;