]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4493: theObject->sharedMemorySize() == theSegment.size() exception
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 13 Apr 2016 22:36:12 +0000 (16:36 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 13 Apr 2016 22:36:12 +0000 (16:36 -0600)
commit5b92ba077dce4c0c2919ebe668e5e415f2e728c2
tree501e80586fc4c8333eec5425fab1031dc8af395a
parent2c4e522641398f4a350000df6221d1d355a0674c
Bug 4493: theObject->sharedMemorySize() == theSegment.size() exception

We should not expect the exact match because, as discovered during bug
3805 (r13947) fix, shared Segment::size() may exceed the originally
requested RAM amount due to stat() page rounding done by OSes like OS X.

Unfortunately, this rounding weakens the failed consistency check a lot.
TODO: Store the exact requested size and check against that as well.
src/ipc/mem/Pointer.h