mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-11 09:49:31 +03:00
fix constructor re-initialization on subproc_main
This commit is contained in:
parent
7ae726bb39
commit
5f13941c18
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ const mi_page_t _mi_page_empty = {
|
||||||
// may lead to allocation itself on some platforms)
|
// may lead to allocation itself on some platforms)
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
||||||
static mi_decl_cache_align mi_subproc_t subproc_main;
|
static mi_decl_cache_align mi_subproc_t subproc_main = { }; // note: empty initializer to prevent running the constructor (in C++ compilation)
|
||||||
|
|
||||||
static mi_decl_cache_align mi_tld_t tld_empty = {
|
static mi_decl_cache_align mi_tld_t tld_empty = {
|
||||||
0, // thread_id
|
0, // thread_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue