Avoid perpetual re-entry for LLOctreeNode::octree_pool_alloc::malloc if LL_USE_TCMALLOC is defined.

This commit is contained in:
Shyotl
2013-10-09 22:16:19 -05:00
parent 7a913af2c7
commit 3132d2b0d0

View File

@@ -157,9 +157,9 @@ inline void* ll_aligned_realloc_16(void* ptr, size_t size, size_t old_size) // r
#else // USE_TCMALLOC
// ll_aligned_foo_16 are not needed with tcmalloc
#define ll_aligned_malloc_16 malloc
#define ll_aligned_realloc_16(a,b,c) realloc(a,b)
#define ll_aligned_free_16 free
#define ll_aligned_malloc_16 ::malloc
#define ll_aligned_realloc_16(a,b,c) ::realloc(a,b)
#define ll_aligned_free_16 ::free
#endif // USE_TCMALLOC
inline void* ll_aligned_malloc_32(size_t size) // returned hunk MUST be freed with ll_aligned_free_32().