mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
avoid memset
This commit is contained in:
parent
b31bc52618
commit
47300eeda3
2 changed files with 5 additions and 3 deletions
|
@ -948,6 +948,7 @@ static mi_segment_t* mi_abandoned_pop(void) {
|
|||
// Do a pop. We use a reader count to prevent
|
||||
// a segment to be decommitted while a read is still pending,
|
||||
// and a tagged pointer to prevent A-B-A link corruption.
|
||||
// (this is called from `memory.c:_mi_mem_free` for example)
|
||||
mi_atomic_increment(&abandoned_readers); // ensure no segment gets decommitted
|
||||
mi_tagged_segment_t next = 0;
|
||||
do {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue