From: Alex Rousskov Date: Mon, 7 Jan 2013 17:16:17 +0000 (-0700) Subject: Debug push and pop operations. X-Git-Tag: SQUID_3_5_0_1~444^2~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=383ff927bdbd965c93986c8e73e05c8c4ddb0932;p=thirdparty%2Fsquid.git Debug push and pop operations. --- diff --git a/src/ipc/mem/PageStack.cc b/src/ipc/mem/PageStack.cc index 135283e30e..6b0c79268f 100644 --- a/src/ipc/mem/PageStack.cc +++ b/src/ipc/mem/PageStack.cc @@ -6,6 +6,7 @@ #include "squid.h" #include "base/TextException.h" +#include "Debug.h" #include "ipc/mem/Page.h" #include "ipc/mem/PageStack.h" @@ -56,6 +57,7 @@ Ipc::Mem::PageStack::pop(PageId &page) theFirstWritable = idx; // may lie page.pool = thePoolId; page.number = value; + debugs(54, 9, page << " at " << idx << " size: " << theSize); return true; } // TODO: report suspiciously long loops @@ -68,6 +70,8 @@ Ipc::Mem::PageStack::pop(PageId &page) void Ipc::Mem::PageStack::push(PageId &page) { + debugs(54, 9, page); + if (!page) return; @@ -87,6 +91,7 @@ Ipc::Mem::PageStack::push(PageId &page) // the enqueued value may already by gone, but that is OK theLastReadable = idx; // may lie ++theSize; + debugs(54, 9, page << " at " << idx << " size: " << theSize); page = PageId(); return; }