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

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


The following commit(s) were added to refs/heads/9.2.x by this push:
     new 76e3e51  remove unused function (#8525)
76e3e51 is described below

commit 76e3e51604c7c14d7c11b19378b9bb235218321e
Author: Fei Deng <duke8...@gmail.com>
AuthorDate: Mon Nov 22 09:46:59 2021 -0600

    remove unused function (#8525)
    
    (cherry picked from commit 2149f0a0c228722315d203ffbfb957ede349e262)
---
 include/tscore/ink_memory.h |  1 -
 src/tscore/ink_memory.cc    | 22 ----------------------
 2 files changed, 23 deletions(-)

diff --git a/include/tscore/ink_memory.h b/include/tscore/ink_memory.h
index 7fd8de1..e1fc3e2 100644
--- a/include/tscore/ink_memory.h
+++ b/include/tscore/ink_memory.h
@@ -99,7 +99,6 @@ void *ats_realloc(void *ptr, size_t size);
 void *ats_memalign(size_t alignment, size_t size);
 void ats_free(void *ptr);
 void *ats_free_null(void *ptr);
-int ats_mallopt(int param, int value);
 
 int ats_msync(caddr_t addr, size_t len, caddr_t end, int flags);
 int ats_madvise(caddr_t addr, size_t len, int flags);
diff --git a/src/tscore/ink_memory.cc b/src/tscore/ink_memory.cc
index bc37a95..f8b9b86 100644
--- a/src/tscore/ink_memory.cc
+++ b/src/tscore/ink_memory.cc
@@ -131,28 +131,6 @@ ats_free_null(void *ptr)
   return nullptr;
 } /* End ats_free_null */
 
-// This effectively makes mallopt() a no-op (currently) when tcmalloc
-// or jemalloc is used. This might break our usage for increasing the
-// number of mmap areas (ToDo: Do we still really need that??).
-//
-// TODO: I think we might be able to get rid of this?
-int
-ats_mallopt(int param ATS_UNUSED, int value ATS_UNUSED)
-{
-#if TS_HAS_JEMALLOC
-// TODO: jemalloc code ?
-#else
-#if TS_HAS_TCMALLOC
-// TODO: tcmalloc code ?
-#else
-#if defined(__GLIBC__)
-  return mallopt(param, value);
-#endif // ! defined(__GLIBC__)
-#endif // ! TS_HAS_TCMALLOC
-#endif // ! TS_HAS_JEMALLOC
-  return 0;
-}
-
 ats_unique_buf
 ats_unique_malloc(size_t size)
 {

Reply via email to