Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 0a3b3d3f88da06fdfe2a745c2cbb7ecee076e000..99fd79ebd055154e1597a862b5fa786a4ee9c5dc 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -1528,6 +1528,7 @@ static void InitializeScavengingVisitorsTables() { |
void Heap::SwitchScavengingVisitorsTableIfProfilingWasEnabled() { |
+#ifdef ENABLE_LOGGING_AND_PROFILING |
if (scavenging_visitors_table_mode_ == LOGGING_AND_PROFILING_ENABLED) { |
// Table was already updated by some isolate. |
return; |
@@ -1553,6 +1554,7 @@ void Heap::SwitchScavengingVisitorsTableIfProfilingWasEnabled() { |
Release_Store(&scavenging_visitors_table_mode_, |
LOGGING_AND_PROFILING_ENABLED); |
} |
+#endif |
} |