Blender Git Loki

Git Commits -> Revision 236ca8f

Revision 236ca8f by Jacques Lucke (master)
July 24, 2020, 10:26 (GMT)
Allocator: make leak detection work with static variables

When definining static variables that own memory, you should
use the "construct on first use" idiom. Otherwise, you'll get
a warning when Blender exits.

More details are provided in D8354.

Differential Revision: https://developer.blender.org/D8354

Commit Details:

Full Hash: 236ca8fbe84575504f6ae80aec63c8059b875ef0
Parent Commit: 3886392
Lines Changed: +105, -23

1 Added Path:

/intern/guardedalloc/intern/leak_detector.cc (+61, -0) (View)

14 Modified Paths:

/intern/guardedalloc/CMakeLists.txt (+1, -0) (Diff)
/intern/guardedalloc/intern/mallocn_guarded_impl.c (+4, -0) (Diff)
/intern/guardedalloc/intern/mallocn_inline.h (+8, -0) (Diff)
/intern/guardedalloc/intern/mallocn_intern.h (+11, -0) (Diff)
/intern/guardedalloc/intern/mallocn_lockfree_impl.c (+4, -0) (Diff)
/intern/guardedalloc/MEM_guardedalloc.h (+4, -0) (Diff)
/source/blender/makesdna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesrna/intern/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+4, -8) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+0, -7) (Diff)
/source/creator/creator.c (+1, -0) (Diff)
/tests/gtests/blenloader/blendfile_loading_base_test.cc (+0, -8) (Diff)
/tests/gtests/testing/CMakeLists.txt (+2, -0) (Diff)
/tests/gtests/testing/testing_main.cc (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021