diff options
Diffstat (limited to 'src/code/__osMalloc.c')
| -rw-r--r-- | src/code/__osMalloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/code/__osMalloc.c b/src/code/__osMalloc.c index 951a4b077..69a39f872 100644 --- a/src/code/__osMalloc.c +++ b/src/code/__osMalloc.c @@ -1,4 +1,5 @@ #include "global.h" +#include "fault.h" #include "terminal.h" #define FILL_ALLOC_BLOCK_FLAG (1 << 0) @@ -53,12 +54,12 @@ #define CHECK_FREE_BLOCK(arena, node) (void)0 // Number of allocation failures across all arenas. -u32 sTotalAllocFailures = 0; +u32 gTotalAllocFailures = 0; // "Arena_failcnt" #define CHECK_ALLOC_FAILURE(arena, ptr) \ do { \ if ((ptr) == NULL) { \ - sTotalAllocFailures++; \ + gTotalAllocFailures++; \ (arena)->allocFailures++; \ } \ } while (0) |
