mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 22:24:58 +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
|
@ -130,6 +130,7 @@ extern inline uint8_t _mi_bin(size_t size) {
|
|||
// - adjust with 3 because we use do not round the first 8 sizes
|
||||
// which each get an exact bin
|
||||
bin = ((b << 2) + (uint8_t)((wsize >> (b - 2)) & 0x03)) - 3;
|
||||
mi_assert_internal(bin < MI_BIN_HUGE);
|
||||
}
|
||||
mi_assert_internal(bin > 0 && bin <= MI_BIN_HUGE);
|
||||
return bin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue