Blender Git Loki

Git Commits -> Revision 6c5f63b

Revision 6c5f63b by Sergey Sharybin (master)
February 18, 2015, 20:58 (GMT)
Guardedalloc: Add extra logging and checks in MEM_freeN()

We don't like when NULL is send to MEM_freeN(), but there was some
differences between lockfree and guarded allocators:

- Lockfree would have silently crash, in both release and debug modes
- Guarded allocator would have printed error message, abort in debug
but keep working in release build.

This commit makes lockfree allocator behavior to match guarded one.

Commit Details:

Full Hash: 6c5f63b476ccd2ede41b94360641541f0aa9af38
Parent Commit: 0f2adc0
Lines Changed: +10, -0

3 Modified Paths:

/intern/guardedalloc/intern/mallocn.c (+1, -0) (Diff)
/intern/guardedalloc/intern/mallocn_guarded_impl.c (+1, -0) (Diff)
/intern/guardedalloc/intern/mallocn_lockfree_impl.c (+8, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021