mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +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
|
@ -4,8 +4,8 @@ void kmalloc_init();
|
|||
void *kmalloc(DWORD size) __attribute__ ((malloc));
|
||||
void kfree(void*);
|
||||
|
||||
extern DWORD sum_alloc;
|
||||
extern DWORD sum_free;
|
||||
extern volatile DWORD sum_alloc;
|
||||
extern volatile DWORD sum_free;
|
||||
|
||||
inline void* operator new(size_t, void* p) { return p; }
|
||||
inline void* operator new[](size_t, void* p) { return p; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue