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 "vm/malloc_hooks.h" | 10 #include "vm/malloc_hooks.h" |
11 | 11 |
12 #include "gperftools/malloc_hook.h" | 12 #include "gperftools/malloc_hook.h" |
13 | 13 |
14 #include "platform/assert.h" | 14 #include "platform/assert.h" |
15 #include "vm/hash_map.h" | 15 #include "vm/hash_map.h" |
16 #include "vm/json_stream.h" | 16 #include "vm/json_stream.h" |
17 #include "vm/os_thread.h" | 17 #include "vm/os_thread.h" |
18 #include "vm/profiler.h" | 18 #include "vm/profiler.h" |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 allocation_info->allocation_size()); | 437 allocation_info->allocation_size()); |
438 MallocHooksState::address_map()->Remove(ptr); | 438 MallocHooksState::address_map()->Remove(ptr); |
439 delete allocation_info; | 439 delete allocation_info; |
440 } | 440 } |
441 } | 441 } |
442 } | 442 } |
443 | 443 |
444 } // namespace dart | 444 } // namespace dart |
445 | 445 |
446 #endif // defined(DART_USE_TCMALLOC) && !defined(PRODUCT) && | 446 #endif // defined(DART_USE_TCMALLOC) && !defined(PRODUCT) && |
447 // !defined(TARGET_ARCH_DBC) && !defined(TARGET_OS_FUCHSIA) | 447 // !defined(TARGET_ARCH_DBC) && !defined(HOST_OS_FUCHSIA) |
OLD | NEW |