"git@gitlab.redox-os.org:redox-os/relibc.git" did not exist on "c2f4c1dbc98fc31dbd296e773eb5a3e30a79d2e8"
Fix FreeBSD failure with recursive malloc call.
* mf-hooks1.c (malloc, calloc, realloc, free, __mf_wrap_alloca_indirect): Call BEGIN_MALLOC_PROTECT before calling the real routines, and END_MALLOC_PROTECT afterwards. * mf-impl.h (enum __mf_state_enum): Expand comment. Add in_malloc. (BEGIN_PROTECT): Handle in_malloc state. (BEGIN_MALLOC_PROTECT, END_MALLOC_PROTECT): New. * testsuite/libmudflap.c/hook2-allocstuff.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103256 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- libmudflap/ChangeLog 10 additions, 0 deletionslibmudflap/ChangeLog
- libmudflap/mf-hooks1.c 18 additions, 0 deletionslibmudflap/mf-hooks1.c
- libmudflap/mf-impl.h 22 additions, 2 deletionslibmudflap/mf-impl.h
- libmudflap/testsuite/libmudflap.c/hook2-allocstuff.c 9 additions, 0 deletionslibmudflap/testsuite/libmudflap.c/hook2-allocstuff.c
Please register or sign in to comment