1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

Kernel: Use consistent names for kmalloc globals and remove volatile

This commit is contained in:
Andreas Kling 2020-05-16 10:37:31 +02:00
parent 154a6e69a4
commit ca4f714d68
3 changed files with 25 additions and 27 deletions

View file

@ -42,12 +42,11 @@ void* krealloc(void*, size_t);
void kfree(void*);
void kfree_aligned(void*);
extern volatile size_t sum_alloc;
extern volatile size_t sum_free;
extern volatile size_t kmalloc_sum_eternal;
extern volatile size_t kmalloc_sum_page_aligned;
extern u32 g_kmalloc_call_count;
extern u32 g_kfree_call_count;
extern size_t g_kmalloc_bytes_allocated;
extern size_t g_kmalloc_bytes_free;
extern size_t g_kmalloc_bytes_eternal;
extern size_t g_kmalloc_call_count;
extern size_t g_kfree_call_count;
extern bool g_dump_kmalloc_stacks;
inline void* operator new(size_t, void* p) { return p; }