Skip to content

Instantly share code, notes, and snippets.

View mjansson's full-sized avatar
⌨️
Hacking

Mattias Jansson mjansson

⌨️
Hacking
View GitHub Profile
@mjansson
mjansson / initfini.c
Created April 16, 2020 13:17
DLL init & fini order
//
// For information on how the runtime deals with initialization and finalization, read
// https://docs.microsoft.com/en-us/cpp/c-runtime-library/crt-initialization
//
extern void rpmalloc_initialize();
extern void rpmalloc_finalize();
static void _global_rpmalloc_init(void);
static void _global_rpmalloc_fini(void);
@mjansson
mjansson / tracy_rpmalloc.cpp
Created April 9, 2020 20:44
Latest rpmalloc for tracy
#ifdef TRACY_ENABLE
/* rpmalloc.c - Memory allocator - Public Domain - 2016 Mattias Jansson
*
* This library provides a cross-platform lock free thread caching malloc implementation in C11.
* The latest source code is always available at
*
* https://github.com/mjansson/rpmalloc
*
* This library is put in the public domain; you can redistribute it and/or modify it without any restrictions.