mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
ensure volatile declaration for abandoned_next field
This commit is contained in:
parent
25ea9cf142
commit
15552eba79
3 changed files with 11 additions and 8 deletions
|
@ -204,7 +204,7 @@ typedef enum mi_page_kind_e {
|
|||
typedef struct mi_segment_s {
|
||||
struct mi_segment_s* next;
|
||||
struct mi_segment_s* prev;
|
||||
struct mi_segment_s* abandoned_next;
|
||||
volatile struct mi_segment_s* abandoned_next;
|
||||
size_t abandoned; // abandoned pages (i.e. the original owning thread stopped) (`abandoned <= used`)
|
||||
size_t used; // count of pages in use (`used <= capacity`)
|
||||
size_t capacity; // count of available pages (`#free + used`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue