OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "platform/globals.h" | 5 #include "platform/globals.h" |
6 | 6 |
7 #if defined(DART_USE_TCMALLOC) && !defined(PRODUCT) && \ | 7 #if defined(DART_USE_TCMALLOC) && !defined(PRODUCT) && \ |
8 !defined(TARGET_ARCH_DBC) && !defined(TARGET_OS_FUCHSIA) | 8 !defined(TARGET_ARCH_DBC) && !defined(HOST_OS_FUCHSIA) |
9 | 9 |
10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
11 #include "vm/globals.h" | 11 #include "vm/globals.h" |
12 #include "vm/malloc_hooks.h" | 12 #include "vm/malloc_hooks.h" |
13 #include "vm/os.h" | 13 #include "vm/os.h" |
14 #include "vm/profiler.h" | 14 #include "vm/profiler.h" |
15 #include "vm/profiler_service.h" | 15 #include "vm/profiler_service.h" |
16 #include "vm/unit_test.h" | 16 #include "vm/unit_test.h" |
17 | 17 |
18 namespace dart { | 18 namespace dart { |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 free(var); | 201 free(var); |
202 MallocHooks::TearDown(); | 202 MallocHooks::TearDown(); |
203 MallocHooks::set_stack_trace_collection_enabled(enable_stack_traces_saved); | 203 MallocHooks::set_stack_trace_collection_enabled(enable_stack_traces_saved); |
204 FLAG_enable_malloc_hooks = enable_malloc_hooks_saved; | 204 FLAG_enable_malloc_hooks = enable_malloc_hooks_saved; |
205 } | 205 } |
206 | 206 |
207 }; // namespace dart | 207 }; // namespace dart |
208 | 208 |
209 #endif // defined(DART_USE_TCMALLOC) && !defined(PRODUCT) | 209 #endif // defined(DART_USE_TCMALLOC) && !defined(PRODUCT) |
OLD | NEW |