Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Unified Diff: runtime/vm/malloc_hooks_unsupported.cc

Issue 2829833003: [Fuchsia] Grab the number of malloc'd bytes from jemalloc (Closed)
Patch Set: Fix guards Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/malloc_hooks_unsupported.cc
diff --git a/runtime/vm/malloc_hooks_unsupported.cc b/runtime/vm/malloc_hooks_unsupported.cc
index 2f84af464d1491e639f1de0e6170473564925647..e7f9efaa21b988ed25840f3aa4ab72a4451b2aef 100644
--- a/runtime/vm/malloc_hooks_unsupported.cc
+++ b/runtime/vm/malloc_hooks_unsupported.cc
@@ -4,8 +4,8 @@
#include "platform/globals.h"
-#if !defined(DART_USE_TCMALLOC) || defined(PRODUCT) || \
- defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA)
+#if (!defined(DART_USE_TCMALLOC) && !defined(DART_USE_JEMALLOC)) || \
+ defined(PRODUCT) || defined(TARGET_ARCH_DBC)
#include "vm/malloc_hooks.h"
@@ -67,5 +67,4 @@ intptr_t MallocHooks::heap_allocated_memory_in_bytes() {
} // namespace dart
-#endif // !defined(DART_USE_TCMALLOC) || defined(PRODUCT) ||
- // defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA)
+#endif // !defined(DART_USE_TCMALLOC) && ...

Powered by Google App Engine
This is Rietveld 408576698