diff options
author | Yann Ylavic <ylavic@apache.org> | 2022-08-18 10:44:52 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2022-08-18 10:44:52 +0000 |
commit | 4aca2baf90298a90bf79f76a931d53134c0f1c58 (patch) | |
tree | 1e1b3c0a7cd34206ad472ba99545ec2a2e5253de /server | |
parent | 4cc0da2152dc3c02ac39158522a05ce908feb0ce (diff) | |
download | httpd-4aca2baf90298a90bf79f76a931d53134c0f1c58.tar.gz |
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.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1903523 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/mpm_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/mpm_common.c b/server/mpm_common.c index b2dac2fe49..2973bc9f4f 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -180,10 +180,10 @@ AP_DECLARE_DATA int ap_max_requests_per_child; 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 |