]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
MPMs that require multiple segments of shared memory now just use two
authorRyan Bloom <rbb@apache.org>
Sat, 2 Dec 2000 07:08:12 +0000 (07:08 +0000)
committerRyan Bloom <rbb@apache.org>
Sat, 2 Dec 2000 07:08:12 +0000 (07:08 +0000)
commit1a3215aab59053aee5c2f163dc48a25007e1d970
tree1c95f542884df7b131969478dfed4e851268b55f
parent78953a774ccfdd404c9d6744b996029b1ab3d20c
MPMs that require multiple segments of shared memory now just use two
shared memory blocks to ensure that all of the memory is available.  This
removes the hack that added 80 bytes to each shared memory block.  We
end up needing two apr_shmem_t variables, because it is difficult to
determine exactly how much memory will be needed.  MM automatically tries
to align the shared memory allocations, so we either need to pad the
shared memory segments, or just use two different segments.  This also
changes APR and MM to take into account whatever memory those packages
need to allocate when creating a shared memory segment.  Any memory that
APR and MM need is automatically added to the size requested by the
program.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87153 13f79535-47bb-0310-9956-ffa450edef68
server/mpm/dexter/scoreboard.c
server/mpm/mpmt_pthread/scoreboard.c
server/mpm/perchild/scoreboard.c
server/mpm/prefork/prefork.c