trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject trafficserver git commit: TS-3417: Fix MADV_DONTDUMP feature for reclaimable freelist
Date Tue, 10 Mar 2015 04:27:06 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 45eeaec10 -> 4ab1b90c5


TS-3417: Fix MADV_DONTDUMP feature for reclaimable freelist


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

Branch: refs/heads/master
Commit: 4ab1b90c5082de0db83f626dcc69899cad6af543
Parents: 45eeaec
Author: Phil Sorber <sorber@apache.org>
Authored: Mon Mar 9 22:26:45 2015 -0600
Committer: Phil Sorber <sorber@apache.org>
Committed: Mon Mar 9 22:26:45 2015 -0600

----------------------------------------------------------------------
 lib/ts/ink_queue.cc | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4ab1b90c/lib/ts/ink_queue.cc
----------------------------------------------------------------------
diff --git a/lib/ts/ink_queue.cc b/lib/ts/ink_queue.cc
index 9e0b7dc..6286d8e 100644
--- a/lib/ts/ink_queue.cc
+++ b/lib/ts/ink_queue.cc
@@ -120,7 +120,11 @@ void
 ink_freelist_madvise_init(InkFreeList **fl, const char *name, uint32_t type_size, uint32_t
chunk_size, uint32_t alignment, int advice)
 {
   ink_freelist_init(fl, name, type_size, chunk_size, alignment);
+#if TS_USE_RECLAIMABLE_FREELIST
+  (void)advice;
+#else
   (*fl)->advice = advice;
+#endif
 }
 
 InkFreeList *


Mime
View raw message