21,7 → 21,7 |
* malloc.c -- memory allocation related functions |
*/ |
|
/* $Id: malloc.c,v 1.3 2005-01-08 15:00:28 pj Exp $ */ |
/* $Id: malloc.c,v 1.2 2003-03-24 11:14:54 pj Exp $ */ |
#ifdef FFTW_USING_CILK |
#include <cilk.h> |
#include <cilk-compat.h> |
92,7 → 92,7 |
// fprintf(stderr, "fftw: %s", s); |
|
printk(KERN_ERR "fftw: %s", s); |
exit(EXIT_FAILURE); |
sys_abort(EXIT_FAILURE); |
} |
|
/* check for memory leaks when debugging */ |
113,7 → 113,7 |
fftw_malloc_cnt, |
fftw_node_cnt, fftw_plan_cnt, fftw_twiddle_size, |
fftw_malloc_total); |
exit(EXIT_FAILURE); |
sys_abort(EXIT_FAILURE); |
} |
#else |
if (fftw_node_cnt || fftw_plan_cnt || fftw_twiddle_size) { |
123,7 → 123,7 |
"MEMORY LEAK!!!\n" |
" node=%d plan=%d twiddle=%d\n", |
fftw_node_cnt, fftw_plan_cnt, fftw_twiddle_size); |
exit(EXIT_FAILURE); |
sys_abort(EXIT_FAILURE); |
} |
#endif |
} |