Skip to content

Commit 2149f0a

Browse files
authored
remove unused function (#8525)
1 parent 90c41fe commit 2149f0a

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

include/tscore/ink_memory.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ void *ats_realloc(void *ptr, size_t size);
9999
void *ats_memalign(size_t alignment, size_t size);
100100
void ats_free(void *ptr);
101101
void *ats_free_null(void *ptr);
102-
int ats_mallopt(int param, int value);
103102

104103
int ats_msync(caddr_t addr, size_t len, caddr_t end, int flags);
105104
int ats_madvise(caddr_t addr, size_t len, int flags);

src/tscore/ink_memory.cc

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -131,28 +131,6 @@ ats_free_null(void *ptr)
131131
return nullptr;
132132
} /* End ats_free_null */
133133

134-
// This effectively makes mallopt() a no-op (currently) when tcmalloc
135-
// or jemalloc is used. This might break our usage for increasing the
136-
// number of mmap areas (ToDo: Do we still really need that??).
137-
//
138-
// TODO: I think we might be able to get rid of this?
139-
int
140-
ats_mallopt(int param ATS_UNUSED, int value ATS_UNUSED)
141-
{
142-
#if TS_HAS_JEMALLOC
143-
// TODO: jemalloc code ?
144-
#else
145-
#if TS_HAS_TCMALLOC
146-
// TODO: tcmalloc code ?
147-
#else
148-
#if defined(__GLIBC__)
149-
return mallopt(param, value);
150-
#endif // ! defined(__GLIBC__)
151-
#endif // ! TS_HAS_TCMALLOC
152-
#endif // ! TS_HAS_JEMALLOC
153-
return 0;
154-
}
155-
156134
ats_unique_buf
157135
ats_unique_malloc(size_t size)
158136
{

0 commit comments

Comments
 (0)