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

Unified Diff: runtime/vm/malloc_hooks_unsupported.cc

Issue 2619443002: Created placeholders for MallocHooks implementation and added define DART_USE_TCMALLOC to specifiy … (Closed)
Patch Set: Created 3 years, 11 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
new file mode 100644
index 0000000000000000000000000000000000000000..c24f2568672245c3712caeaee26e11dc3a624922
--- /dev/null
+++ b/runtime/vm/malloc_hooks_unsupported.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#ifndef DART_USE_TCMALLOC
zra 2017/01/06 16:13:17 #if !defined(DART_USE_TCMALLOC)
bkonyi 2017/01/06 20:23:34 Done.
+
+#include "vm/malloc_hooks.h"
+
+namespace dart {
+
+void MallocHooks::Init() {
+ // TODO(bkonyi): Implement
+}
+
+} // namespace dart
+#endif
zra 2017/01/06 16:13:17 Missing newline and // !defined(DART_USE_TCMALLOC)
bkonyi 2017/01/06 20:23:34 Done.

Powered by Google App Engine
This is Rietveld 408576698