glibc function, glibc 2.12 abort this function
| 2300 | |
| 2301 | // glibc function, glibc 2.12 abort this function |
| 2302 | MEM_NO_INSTRUMENT MEM_INLINE_USED inline void *__wrap_pvalloc(size_t size) |
| 2303 | { |
| 2304 | if (__mem_in_probe_) |
| 2305 | { |
| 2306 | #if defined(FASTGRIND_TC_MALLOC) |
| 2307 | return tc_pvalloc(size); |
| 2308 | #elif defined(FASTGRIND_JE_MALLOC) |
| 2309 | return je_pvalloc_emulate(size); |
| 2310 | #else |
| 2311 | return __real_pvalloc(size); |
| 2312 | #endif |
| 2313 | } |
| 2314 | |
| 2315 | __mem_in_probe_ = true; |
| 2316 | |
| 2317 | void *p = |
| 2318 | #if defined(FASTGRIND_TC_MALLOC) |
| 2319 | tc_pvalloc(size); |
| 2320 | #elif defined(FASTGRIND_JE_MALLOC) |
| 2321 | je_pvalloc_emulate(size); |
| 2322 | #else |
| 2323 | __real_pvalloc(size); |
| 2324 | #endif |
| 2325 | |
| 2326 | if (p) |
| 2327 | { |
| 2328 | memLocalInfo::instance().add(malloc_usable_size(p)); |
| 2329 | } |
| 2330 | |
| 2331 | __mem_in_probe_ = false; |
| 2332 | return p; |
| 2333 | } |
| 2334 | |
| 2335 | // glibc function |
| 2336 | MEM_NO_INSTRUMENT MEM_INLINE_USED inline void *__wrap_memalign(size_t alignment, size_t size) |
nothing calls this directly
no test coverage detected