Skip to content

Commit 8be1e02

Browse files
fangerertimfel
authored andcommitted
Add dummy impl for 'PyTraceMalloc_(Un)Track'.
1 parent 41faf08 commit 8be1e02

File tree

1 file changed

+11
-0
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+11
-0
lines changed

graalpython/com.oracle.graal.python.cext/src/obmalloc.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,14 @@ void * PyMem_Realloc(void *ptr, size_t new_size) {
7979
void PyMem_Free(void *ptr) {
8080
free(ptr);
8181
}
82+
83+
int PyTraceMalloc_Track(unsigned int domain, uintptr_t ptr, size_t size) {
84+
// '-2' means disabled
85+
return -2;
86+
}
87+
88+
89+
int PyTraceMalloc_Untrack(unsigned int domain, uintptr_t ptr) {
90+
// '-2' means disabled
91+
return -2;
92+
}

0 commit comments

Comments
 (0)