Skip to content

Commit c5ccb7d

Browse files
committed
Add comment about what _PyObject_VirtualAlloc does.
1 parent 61c3753 commit c5ccb7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Include/internal/pycore_pymem.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ struct _PyTraceMalloc_Config {
9494

9595
PyAPI_DATA(struct _PyTraceMalloc_Config) _Py_tracemalloc_config;
9696

97-
97+
/* Allocate memory directly from the O/S virtual memory system,
98+
* where supported. Otherwise fallback on malloc */
9899
void *_PyObject_VirtualAlloc(size_t size);
99100
void _PyObject_VirtualFree(void *, size_t size);
100101

0 commit comments

Comments
 (0)