diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-15 14:08:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-15 14:09:39 +0300 |
commit | ddc7e5f1b6b3ee98c2753b224d0c97b4b09802b6 (patch) | |
tree | 03f8705e82b1894d6803c7cd1d2822b72638fd3d /source/blender/blenlib/intern | |
parent | e509f9c3a0b59bf4ec013455090de73dd9a9619c (diff) |
Cleanup: improve comments, remove debug printf
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/BLI_memarena.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_memarena.c b/source/blender/blenlib/intern/BLI_memarena.c index de2ce44be44..0ab27a5adad 100644 --- a/source/blender/blenlib/intern/BLI_memarena.c +++ b/source/blender/blenlib/intern/BLI_memarena.c @@ -185,6 +185,9 @@ void *BLI_memarena_calloc(MemArena *ma, size_t size) * * \note Useful for multi-threaded tasks that need a thread-local #MemArena * that is kept after the multi-threaded operation is completed. + * + * \note Avoid accumulating memory pools where possible + * as any unused memory in `ma_src` is wasted every merge. */ void BLI_memarena_merge(MemArena *ma_dst, MemArena *ma_src) { |