aboutsummaryrefslogtreecommitdiff
path: root/source/components/utilities/utcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/utilities/utcache.c')
-rw-r--r--source/components/utilities/utcache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/components/utilities/utcache.c b/source/components/utilities/utcache.c
index 5c67a2989a67..2f80c77f63e7 100644
--- a/source/components/utilities/utcache.c
+++ b/source/components/utilities/utcache.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -433,9 +433,9 @@ AcpiOsAcquireObject (
{
/* The cache is empty, create a new object */
- ACPI_MEM_TRACKING (Cache->TotalAllocated++);
-
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
+ ACPI_MEM_TRACKING (Cache->TotalAllocated++);
+
if ((Cache->TotalAllocated - Cache->TotalFreed) > Cache->MaxOccupied)
{
Cache->MaxOccupied = Cache->TotalAllocated - Cache->TotalFreed;