mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 23:27:42 +00:00
Make the kmalloc global stats variable volatile.
I know I'm praying for cargo here, but this does fix a weird issue where logging the sum_alloc and sum_free globals wouldn't display symmetric values all the time.
This commit is contained in:
parent
82dae8fc90
commit
a5caf7ca99
3 changed files with 15 additions and 4 deletions
|
@ -27,8 +27,8 @@ typedef struct
|
|||
|
||||
PRIVATE BYTE alloc_map[POOL_SIZE / CHUNK_SIZE / 8];
|
||||
|
||||
DWORD sum_alloc = 0;
|
||||
DWORD sum_free = POOL_SIZE;
|
||||
volatile DWORD sum_alloc = 0;
|
||||
volatile DWORD sum_free = POOL_SIZE;
|
||||
|
||||
static SpinLock s_kmallocLock;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue