Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2020-05-19 14:48:19 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2020-05-19 14:51:11 +0300
commitfad7e72fd45b9720897f5ac4f5589bb627150cad (patch)
tree763bc40a845d2866081a340802df839e8075d8d4 /TracyVulkan.hpp
parentdd4c2cf9faf25416d02fc764c3f29376b4ed98da (diff)
Harden against uninitialized rpmalloc.
Initialize rpmalloc either by explicitly calling InitRPMallocThread(), or by forcing initialization of thread local variables block.
Diffstat (limited to 'TracyVulkan.hpp')
-rw-r--r--TracyVulkan.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/TracyVulkan.hpp b/TracyVulkan.hpp
index e258f001..68efea58 100644
--- a/TracyVulkan.hpp
+++ b/TracyVulkan.hpp
@@ -271,6 +271,7 @@ private:
static inline VkCtx* CreateVkContext( VkPhysicalDevice physdev, VkDevice device, VkQueue queue, VkCommandBuffer cmdbuf )
{
+ InitRPMallocThread();
auto ctx = (VkCtx*)tracy_malloc( sizeof( VkCtx ) );
new(ctx) VkCtx( physdev, device, queue, cmdbuf );
return ctx;