summaryrefslogtreecommitdiffstats
path: root/profman
diff options
context:
space:
mode:
authorDavid Sehr <sehr@google.com>2016-10-17 10:09:33 -0700
committerDavid Sehr <sehr@google.com>2016-10-17 13:50:35 -0700
commitf57589fd40e5b69dad5aff060ccef756507f381a (patch)
tree62d38e73660d9818b18c4741c6b3cce3306d63d5 /profman
parentc25dfeab1a66c942ae658fc7cd367f7c1ac502a1 (diff)
downloadandroid_art-f57589fd40e5b69dad5aff060ccef756507f381a.tar.gz
android_art-f57589fd40e5b69dad5aff060ccef756507f381a.tar.bz2
android_art-f57589fd40e5b69dad5aff060ccef756507f381a.zip
Remove logging dependency on runtime
Moved the abort backtracing function to runtime, forcing callers to supply the aborter at InitLogging. This makes runtime properly layer on top of logging by removing the cyclic dependency. Bug: 22322814 Test: test-art-host Change-Id: I8b2e72174e937bb88fe1bddd6d04b564cfb011a9
Diffstat (limited to 'profman')
-rw-r--r--profman/profman.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/profman/profman.cc b/profman/profman.cc
index 7722e8041a..b17816be0c 100644
--- a/profman/profman.cc
+++ b/profman/profman.cc
@@ -33,6 +33,7 @@
#include "base/unix_file/fd_file.h"
#include "dex_file.h"
#include "jit/offline_profiling_info.h"
+#include "runtime.h"
#include "utils.h"
#include "zip_archive.h"
#include "profile_assistant.h"
@@ -143,7 +144,7 @@ class ProfMan FINAL {
original_argc = argc;
original_argv = argv;
- InitLogging(argv);
+ InitLogging(argv, Runtime::Aborter);
// Skip over the command name.
argv++;