Skip to content

Commit a1ff9b0

Browse files
Move _PyObject_DebugMallocStat() over.
1 parent ec01f99 commit a1ff9b0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Include/internal/pycore_obmalloc.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,12 @@ void _PyObject_VirtualFree(void *, size_t size);
667667
PyAPI_FUNC(Py_ssize_t) _Py_GetAllocatedBlocks(void);
668668

669669

670+
#ifdef WITH_PYMALLOC
671+
// Export the symbol for the 3rd party guppy3 project
672+
PyAPI_FUNC(int) _PyObject_DebugMallocStats(FILE *out);
673+
#endif
674+
675+
670676
#ifdef __cplusplus
671677
}
672678
#endif

Include/internal/pycore_pymem.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ struct _PyTraceMalloc_Config {
115115

116116
PyAPI_DATA(struct _PyTraceMalloc_Config) _Py_tracemalloc_config;
117117

118-
/* Macros */
119-
#ifdef WITH_PYMALLOC
120-
// Export the symbol for the 3rd party guppy3 project
121-
PyAPI_FUNC(int) _PyObject_DebugMallocStats(FILE *out);
122-
#endif
123-
124118
#ifdef __cplusplus
125119
}
126120
#endif

0 commit comments

Comments
 (0)