aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/internal/pycore_pymem.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_pymem.h')
-rw-r--r--Include/internal/pycore_pymem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/internal/pycore_pymem.h b/Include/internal/pycore_pymem.h
index e4e35c16ce8..d59ab490493 100644
--- a/Include/internal/pycore_pymem.h
+++ b/Include/internal/pycore_pymem.h
@@ -94,6 +94,11 @@ struct _PyTraceMalloc_Config {
PyAPI_DATA(struct _PyTraceMalloc_Config) _Py_tracemalloc_config;
+/* Allocate memory directly from the O/S virtual memory system,
+ * where supported. Otherwise fallback on malloc */
+void *_PyObject_VirtualAlloc(size_t size);
+void _PyObject_VirtualFree(void *, size_t size);
+
#ifdef __cplusplus
}