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

Side by Side Diff: runtime/vm/malloc_hooks_unsupported.cc

Issue 2678313003: Fix for issue 28638 - flakiness on dartkp-dart-precompiled caused by MallocHooks (Closed)
Patch Set: Address self review comments. Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/malloc_hooks.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8
9 #include "vm/malloc_hooks.h" 9 #include "vm/malloc_hooks.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 void MallocHooks::InitOnce() { 13 void MallocHooks::InitOnce() {
14 // Do nothing. 14 // Do nothing.
15 } 15 }
16 16
17 17
18 void MallocHooks::TearDown() { 18 void MallocHooks::TearDown() {
19 // Do nothing. 19 // Do nothing.
20 } 20 }
21 21
22 22
23 void MallocHooks::ResetStats() { 23 void MallocHooks::ResetStats() {
24 // Do nothing. 24 // Do nothing.
25 } 25 }
26 26
27 27
28 bool MallocHooks::Initialized() { 28 bool MallocHooks::Active() {
29 return false; 29 return false;
30 } 30 }
31 31
32 32
33 void MallocHooks::PrintToJSONObject(JSONObject* jsobj) {
34 // Do nothing.
35 }
36
37
33 intptr_t MallocHooks::allocation_count() { 38 intptr_t MallocHooks::allocation_count() {
34 return 0; 39 return 0;
35 } 40 }
36 41
37 42
38 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { 43 intptr_t MallocHooks::heap_allocated_memory_in_bytes() {
39 return 0; 44 return 0;
40 } 45 }
41 46
42 } // namespace dart 47 } // namespace dart
43 48
44 #endif // defined(DART_USE_TCMALLOC) || defined(PRODUCT) 49 #endif // defined(DART_USE_TCMALLOC) || defined(PRODUCT)
OLDNEW
« no previous file with comments | « runtime/vm/malloc_hooks.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698