|
2 | 2 |
|
3 | 3 | #include "types.h" |
4 | 4 | #include "M2mem.h" |
5 | | -#include "debug.h" |
| 5 | +#include <interface/m2-mem.h> |
6 | 6 |
|
7 | 7 | #ifdef MEMDEBUG |
8 | 8 | #include <memdebug.h> |
@@ -95,56 +95,6 @@ char *getmoremem_atomic (char *s, size_t old, size_t new) { |
95 | 95 | return p; |
96 | 96 | } |
97 | 97 |
|
98 | | -/* Valgrind helper functions */ |
99 | | -#ifndef NVALGRIND |
100 | | - |
101 | | -void *I_WRAP_SONAME_FNNAME_ZU(libgcZdsoZd1,GC_malloc)(size_t s){ |
102 | | - long result; |
103 | | - OrigFn fn; |
104 | | - VALGRIND_GET_ORIG_FN(fn); |
105 | | - CALL_FN_W_W(result,fn,s); |
106 | | - VALGRIND_MAKE_MEM_DEFINED(&result,sizeof(result)); |
107 | | - return (void*)result; |
108 | | -} |
109 | | - |
110 | | -void *I_WRAP_SONAME_FNNAME_ZU(libgcZdsoZd1,GC_malloc_atomic)(size_t s){ |
111 | | - long result; |
112 | | - OrigFn fn; |
113 | | - VALGRIND_GET_ORIG_FN(fn); |
114 | | - CALL_FN_W_W(result,fn,s); |
115 | | - VALGRIND_MAKE_MEM_DEFINED(&result,sizeof(result)); |
116 | | - return (void*)result; |
117 | | -} |
118 | | - |
119 | | -void *I_WRAP_SONAME_FNNAME_ZU(libgcZdsoZd1,GC_malloc_ignore_off_page)(size_t s){ |
120 | | - long result; |
121 | | - OrigFn fn; |
122 | | - VALGRIND_GET_ORIG_FN(fn); |
123 | | - CALL_FN_W_W(result,fn,s); |
124 | | - VALGRIND_MAKE_MEM_DEFINED(&result,sizeof(result)); |
125 | | - return (void*)result; |
126 | | -} |
127 | | - |
128 | | -void *I_WRAP_SONAME_FNNAME_ZU(libgcZdsoZd1,GC_malloc_atomic_ignore_off_page)(size_t s){ |
129 | | - long result; |
130 | | - OrigFn fn; |
131 | | - VALGRIND_GET_ORIG_FN(fn); |
132 | | - CALL_FN_W_W(result,fn,s); |
133 | | - VALGRIND_MAKE_MEM_DEFINED(&result,sizeof(result)); |
134 | | - return (void*)result; |
135 | | -} |
136 | | - |
137 | | -void *I_WRAP_SONAME_FNNAME_ZU(libgcZdsoZd1,GC_realloc)(void *p, size_t s){ |
138 | | - long result; |
139 | | - OrigFn fn; |
140 | | - VALGRIND_GET_ORIG_FN(fn); |
141 | | - CALL_FN_W_WW(result,fn,(long)p,s); |
142 | | - VALGRIND_MAKE_MEM_DEFINED(&result,sizeof(result)); |
143 | | - return (void*)result; |
144 | | -} |
145 | | - |
146 | | -#endif /* NVALGRIND */ |
147 | | - |
148 | 98 | /* |
149 | 99 | Local Variables: |
150 | 100 | compile-command: "echo \"make: Entering directory \\`$M2BUILDDIR/Macaulay2/d'\" && make -C $M2BUILDDIR/Macaulay2/d " |
|
0 commit comments