mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
add recursion guard to deferred callback
This commit is contained in:
parent
e227341f5b
commit
23155c5d71
4 changed files with 7 additions and 4 deletions
|
@ -405,6 +405,7 @@ typedef struct mi_os_tld_s {
|
|||
// Thread local data
|
||||
struct mi_tld_s {
|
||||
unsigned long long heartbeat; // monotonic heartbeat count
|
||||
bool recurse; // true if deferred was called; used to prevent infinite recursion.
|
||||
mi_heap_t* heap_backing; // backing heap of this thread (cannot be deleted)
|
||||
mi_segments_tld_t segments; // segment tld
|
||||
mi_os_tld_t os; // os tld
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue