]> git.ipfire.org Git - thirdparty/squid.git/commit
Polished shared memory initialization sequence, using RunnersRegistry API.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 14 Apr 2011 04:25:35 +0000 (22:25 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 14 Apr 2011 04:25:35 +0000 (22:25 -0600)
commita4555399ac03b5fefe9bb248dd20819a55817539
treeed5eb6b49fccfd806da8387836d7b11b8d436a4b
parent6d57128b2cc5d8dc7307438bdea1b0fd496206dc
Polished shared memory initialization sequence, using RunnersRegistry API.

The master process is now responsible for initializing all shared memory
segments before starting kids. The kids do not create new segments and attach
to the already initialized segments instead. This approach may not scale for
ever, but it avoids more complex initialization synchronization via
Coordinator.

Do not use Strings for globals because current string memory pools do not
support early initialization.
src/MemStore.cc
src/MemStore.h
src/ipc/mem/Pages.cc