You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2022/08/18 10:44:53 UTC
svn commit: r1903523 - /httpd/httpd/trunk/server/mpm_common.c
Author: ylavic
Date: Thu Aug 18 10:44:52 2022
New Revision: 1903523
URL: http://svn.apache.org/viewvc?rev=1903523&view=rev
Log:
core: Follow up to r1902728: ap_max_mem_free early setting.
Set ap_max_mem_free at static initialization time so that the main thread,
created early from init_process(), has some (default) limits for its pool.
Modified:
httpd/httpd/trunk/server/mpm_common.c
Modified: httpd/httpd/trunk/server/mpm_common.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm_common.c?rev=1903523&r1=1903522&r2=1903523&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm_common.c (original)
+++ httpd/httpd/trunk/server/mpm_common.c Thu Aug 18 10:44:52 2022
@@ -180,10 +180,10 @@ AP_DECLARE_DATA int ap_max_requests_per_
AP_DECLARE_DATA char ap_coredump_dir[MAX_STRING_LEN];
AP_DECLARE_DATA int ap_coredumpdir_configured;
AP_DECLARE_DATA int ap_graceful_shutdown_timeout;
-AP_DECLARE_DATA apr_uint32_t ap_max_mem_free;
AP_DECLARE_DATA apr_size_t ap_thread_stacksize;
#define ALLOCATOR_MAX_FREE_DEFAULT (2048*1024)
+AP_DECLARE_DATA apr_uint32_t ap_max_mem_free = ALLOCATOR_MAX_FREE_DEFAULT;
/* Set defaults for config directives implemented here. This is
* called from core's pre-config hook, so MPMs which need to override