diff options
| author | Nat Linden <nat@lindenlab.com> | 2021-10-04 16:05:37 +0000 | 
|---|---|---|
| committer | Euclid Linden <euclid@lindenlab.com> | 2021-10-04 16:05:37 +0000 | 
| commit | 05e01d58b684b81ca73ad3a68d882344cb93541e (patch) | |
| tree | 37dcf05a02ba41d8c5e58deb8c43034fea01ccf6 /indra | |
| parent | 68be3018ab1dcaf31e9a67cd0fc4d996b535d17f (diff) | |
| parent | db86ec9176dcbfabe5fddb3603da4132443f8b7f (diff) | |
Merged in SL-16040 (pull request #709), Nat's changes to allow autobuild with Tracy enabled on TeamCity.
SL-16040: TC viewer builds with Tracy enabled
Approved-by: Euclid Linden
Approved-by: Dave Parks
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llcommon/llcommon.cpp | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/llcommon/llcommon.cpp b/indra/llcommon/llcommon.cpp index da61e7539a..5d4a623bf6 100644 --- a/indra/llcommon/llcommon.cpp +++ b/indra/llcommon/llcommon.cpp @@ -34,14 +34,13 @@  #include "llcleanup.h"  #if (TRACY_ENABLE) -// Override new/delet for tracy memory profiling +// Override new/delete for tracy memory profiling  void *operator new(size_t size)  {      auto ptr = (malloc) (size);      if (!ptr)      {          throw std::bad_alloc(); -        return nullptr;      }      TracyAlloc(ptr, size);      return ptr; @@ -62,7 +61,7 @@ void operator delete(void *ptr) noexcept  void *tracy_aligned_malloc(size_t size, size_t alignment)  { -    auto ptr = (_aligned_malloc) (size, alignment); +    auto ptr = ll_aligned_malloc_fallback(size, alignment);      if (ptr) TracyAlloc(ptr, size);      return ptr;  } @@ -70,7 +69,7 @@ void *tracy_aligned_malloc(size_t size, size_t alignment)  void tracy_aligned_free(void *memblock)  {      TracyFree(memblock); -    (_aligned_free)(memblock); +    ll_aligned_free_fallback(memblock);  }  #endif  | 
