]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
core: Apply ap_max_mem_free to created threads' pool allocator.
authorYann Ylavic <ylavic@apache.org>
Fri, 15 Jul 2022 09:24:01 +0000 (09:24 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 15 Jul 2022 09:24:01 +0000 (09:24 +0000)
commit5382f96a3a0708c050ece38cf70ad8d6808b882c
tree16b7c99ca65d9c2b288ed7a501e1169672050105
parente1625133b1117c51cfce1088eff09b44fe792cb4
core: Apply ap_max_mem_free to created threads' pool allocator.

Since APR does not set the threshold above which the allocator of the thread's
starts returning its memory to the system, so set ap_max_mem_free from
ap_thread_create(), ap_thread_main_create() and ap_thread_current_create().

* include/httpd.h:
  Provide our own ap_thread_create() in any case (but !APR_HAS_THREADS).
  Simplify #ifdef-ery.

* server/util.c(thread_start, ap_thread_main_create, ap_thread_current_create):
  Set ap_max_mem_free to the thread's pool allocator.
  Simplify #ifdef-ery.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1902728 13f79535-47bb-0310-9956-ffa450edef68
include/httpd.h
server/util.c