summaryrefslogtreecommitdiff
path: root/src/gc/handletable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gc/handletable.cpp')
-rw-r--r--src/gc/handletable.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gc/handletable.cpp b/src/gc/handletable.cpp
index 2232c455f5..2480a5618d 100644
--- a/src/gc/handletable.cpp
+++ b/src/gc/handletable.cpp
@@ -184,8 +184,10 @@ void HndDestroyHandleTable(HHANDLETABLE hTable)
// fetch the handle table pointer
HandleTable *pTable = Table(hTable);
+#ifdef ENABLE_PERF_COUNTERS
// decrement handle count by number of handles in this table
COUNTER_ONLY(GetPerfCounters().m_GC.cHandles -= HndCountHandles(hTable));
+#endif
// We are going to free the memory for this HandleTable.
// Let us reset the copy in g_pHandleTableArray to NULL.