Skip to content

Commit 910da91

Browse files
compnerdcopybara-github
authored andcommitted
clean up the a few cases where HAVE_STRUCT_MALLINFO was not renamed
With the introduction of `TCMALLOC_HAVE_STRUCT_MALLINFO`, tcmalloc uniformly uses this macro to ensure portability to libc implementations which do not provide the SVID `mallopt` interfaces. Port the last few stragglers to the new macro. PiperOrigin-RevId: 391131502 Change-Id: Ic3a1b40196f197a9c052333e904d549469af3bd6
1 parent c730bdc commit 910da91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcmalloc/libc_override_redefine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int posix_memalign(void** r, size_t a, size_t s) noexcept {
6767
}
6868
void malloc_stats(void) noexcept { TCMallocInternalMallocStats(); }
6969
int mallopt(int cmd, int v) noexcept { return TCMallocInternalMallOpt(cmd, v); }
70-
#ifdef HAVE_STRUCT_MALLINFO
70+
#ifdef TCMALLOC_HAVE_STRUCT_MALLINFO
7171
struct mallinfo mallinfo(void) noexcept {
7272
return TCMallocInternalMallocInfo();
7373
}

0 commit comments

Comments
 (0)