You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/03/31 03:14:47 UTC
[28/51] git commit: TS-1742 just make the regression test passed if
cas128 enabled
TS-1742 just make the regression test passed if cas128 enabled
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/ae085945
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ae085945
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ae085945
Branch: refs/heads/3.3.x
Commit: ae085945184c43195d825a6be72a259b84d9df33
Parents: bd8fd4f
Author: weijin <ta...@taobao.com>
Authored: Fri Mar 22 02:09:10 2013 +0800
Committer: weijin <ta...@taobao.com>
Committed: Fri Mar 22 02:10:35 2013 +0800
----------------------------------------------------------------------
iocore/eventsystem/P_UnixEventProcessor.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ae085945/iocore/eventsystem/P_UnixEventProcessor.h
----------------------------------------------------------------------
diff --git a/iocore/eventsystem/P_UnixEventProcessor.h b/iocore/eventsystem/P_UnixEventProcessor.h
index 0c89f7c..7249770 100644
--- a/iocore/eventsystem/P_UnixEventProcessor.h
+++ b/iocore/eventsystem/P_UnixEventProcessor.h
@@ -44,9 +44,9 @@ thread_data_used(0)
TS_INLINE off_t
EventProcessor::allocate(int size)
{
- static off_t start = (offsetof(EThread, thread_private) + 7) & ~7;
+ static off_t start = INK_ALIGN(offsetof(EThread, thread_private), 16);
static off_t loss = start - offsetof(EThread, thread_private);
- size = (size + 7) & ~7; // 8 byte alignment
+ size = INK_ALIGN(size, 16); // 16 byte alignment
int old;
do {