diff options
author | 2016-09-13 10:47:28 -0700 | |
---|---|---|
committer | 2016-09-26 10:59:22 -0700 | |
commit | 3fec9ac0d5af1358d216eb2fdc2000ec0205f3f0 (patch) | |
tree | f38d8d8aae51f53e7ee6b474f47597b784fc2316 /runtime/openjdkjvmti/transform.cc | |
parent | 0cfe19af3b7395658210ea6044a65c9811962a7a (diff) |
ART: Use libbase logging
Move most of our logging infrastructure over to system/core/base.
Retain VLOG.
Using unified Android infrastructure has two main advantages. First,
it reduces the complexity/maintenance burden in ART. Second, it
allows to detach logging for the cases where we do not want or need
a runtime, e.g., dexdump, the disassembler, etc. As a part of the
latter, libbase is also supported for all hosts (including Windows).
From a developer viewpoint, there are minor behavior changes for the
LOG statements (see above), but otherwise usage is the same. Explicit
severity enum items are in the android::base namespace now.
Bug: 31338270
Test: m test-art-host
Change-Id: I5abcb2f45f5b03d49951874c48544f72a283a91b
Diffstat (limited to 'runtime/openjdkjvmti/transform.cc')
-rw-r--r-- | runtime/openjdkjvmti/transform.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/openjdkjvmti/transform.cc b/runtime/openjdkjvmti/transform.cc index a0d79f3982..b5622b5cad 100644 --- a/runtime/openjdkjvmti/transform.cc +++ b/runtime/openjdkjvmti/transform.cc @@ -201,8 +201,8 @@ static bool FindDalvikSystemDexFileAndLoaderForClass( art::Handle<art::mirror::Class> loader_class(hs.NewHandle(h_class_loader->GetClass())); // Check if loader is a BaseDexClassLoader if (!loader_class->IsSubClass(base_dex_loader_class.Get())) { - LOG(art::ERROR) << "The classloader is not a BaseDexClassLoader which is currently the only " - << "supported class loader type!"; + LOG(ERROR) << "The classloader is not a BaseDexClassLoader which is currently the only " + << "supported class loader type!"; return false; } art::Handle<art::mirror::Object> path_list( @@ -333,7 +333,7 @@ jvmtiError MoveTransformedFileIntoRuntime(jclass jklass, // Find dalvik.system.DexFile that represents the dex file we are changing. if (!FindDalvikSystemDexFileAndLoaderForClass(klass, &dex_file_ptr, &class_loader_ptr)) { self->TransitionFromRunnableToSuspended(old_state); - LOG(art::ERROR) << "Could not find DexFile."; + LOG(ERROR) << "Could not find DexFile."; return ERR(INTERNAL); } art::Handle<art::mirror::Object> dex_file_obj(hs.NewHandle(dex_file_ptr)); |