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 2018/03/01 18:02:38 UTC

[trafficserver] branch master updated: Revert "MADV_DODUMP"

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 771f7e0  Revert "MADV_DODUMP"
771f7e0 is described below

commit 771f7e0686e7b454a650e7776ff622dcde9d7e18
Author: Fei Deng <du...@gmail.com>
AuthorDate: Wed Feb 28 10:17:38 2018 -0600

    Revert "MADV_DODUMP"
    
    This reverts commit 0281f339400dee065dbb76b8c4cb05b6b99d6672.
---
 lib/ts/ink_queue.cc | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/lib/ts/ink_queue.cc b/lib/ts/ink_queue.cc
index 4f48c24..b6606ec 100644
--- a/lib/ts/ink_queue.cc
+++ b/lib/ts/ink_queue.cc
@@ -320,11 +320,6 @@ static void
 malloc_free(InkFreeList *f, void *item)
 {
   if (f->alignment) {
-#ifdef MADV_DODUMP
-    if (f->advice && (INK_ALIGN((uint64_t)item, ats_pagesize()) == (uint64_t)item)) {
-      ats_madvise((caddr_t)item, INK_ALIGN(f->type_size, f->alignment), MADV_DODUMP);
-    }
-#endif
     ats_memalign_free(item);
   } else {
     ats_free(item);
@@ -394,11 +389,6 @@ malloc_bulkfree(InkFreeList *f, void *head, void *tail, size_t num_item)
   if (f->alignment) {
     for (size_t i = 0; i < num_item && item; ++i, item = next) {
       next = *(void **)item; // find next item before freeing current item
-#ifdef MADV_DODUMP
-      if (f->advice && (INK_ALIGN((uint64_t)item, ats_pagesize()) == (uint64_t)item)) {
-        ats_madvise((caddr_t)item, INK_ALIGN(f->type_size, f->alignment), MADV_DODUMP);
-      }
-#endif
       ats_memalign_free(item);
     }
   } else {

-- 
To stop receiving notification emails like this one, please contact
zwoop@apache.org.