trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject git commit: TS-1006: Fix assert failure in ink_freelist_new
Date Mon, 04 Feb 2013 06:45:12 GMT
Updated Branches:
  refs/heads/master c905616be -> bb6dd3f79


TS-1006: Fix assert failure in ink_freelist_new

This patch fix:
http://ci.apache.org/builders/tserver-trunk-debug/builds/1172/steps/compile_6/logs/stdio

it's due to careless rebasing of reclaimable freelist patchset.

Signed-off-by: Yunkai Zhang <qiushu.zyk@taobao.com>
Signed-off-by: Zhao Yongming <ming.zym@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/bb6dd3f7
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/bb6dd3f7
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/bb6dd3f7

Branch: refs/heads/master
Commit: bb6dd3f79a888e0660d22275aad5684291e152bd
Parents: c905616
Author: Yunkai Zhang <qiushu.zyk@taobao.com>
Authored: Mon Feb 4 13:49:34 2013 +0800
Committer: Zhao Yongming <ming.zym@gmail.com>
Committed: Mon Feb 4 14:42:46 2013 +0800

----------------------------------------------------------------------
 lib/ts/Allocator.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/bb6dd3f7/lib/ts/Allocator.h
----------------------------------------------------------------------
diff --git a/lib/ts/Allocator.h b/lib/ts/Allocator.h
index 033f5cd..9335973 100644
--- a/lib/ts/Allocator.h
+++ b/lib/ts/Allocator.h
@@ -163,7 +163,7 @@ public:
   ClassAllocator(const char *name, unsigned int chunk_size = 128,
                  unsigned int alignment = 16)
   {
-    ink_freelist_init(&this->fl, name, sizeof(C), chunk_size, RND16(alignment));
+    ink_freelist_init(&this->fl, name, RND16(sizeof(C)), chunk_size, RND16(alignment));
   }
 
   struct


Mime
View raw message