]> granicus.if.org Git - apache/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)
commitb7e17bb7995fdd588ff8fec71d05402a40120763
tree1c95f542884df7b131969478dfed4e851268b55f
parent6af2db37953ea59ebfbd812b3f1a04d6d5da9c5e
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