diff options
author | 2021-11-30 10:36:13 +0000 | |
---|---|---|
committer | 2021-11-30 13:07:53 +0000 | |
commit | 05ed65a384242c6801e4d901db8b87ff7236cf3a (patch) | |
tree | c84a7455e526bf80d919544ee2f140d39f198d1e | |
parent | 254a858ef4f65728f636443b8f9ca3e84310308b (diff) |
Add std::noboolalpha to InlineInfo dumps
std::boolalpha can persist in the stream, so we explicitly pass
std::noboolalpha to avoid unintended boolalpha prints.
Tests: ART tests
Change-Id: I57e29c386868676bd19107cabfe6c313a15ce689
-rw-r--r-- | runtime/entrypoints/entrypoint_utils-inl.h | 2 | ||||
-rw-r--r-- | runtime/stack_map.cc | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/entrypoints/entrypoint_utils-inl.h b/runtime/entrypoints/entrypoint_utils-inl.h index d3370afb50..b36c5c3c96 100644 --- a/runtime/entrypoints/entrypoint_utils-inl.h +++ b/runtime/entrypoints/entrypoint_utils-inl.h @@ -96,7 +96,7 @@ inline std::string GetResolvedMethodErrorString(ClassLinker* class_linker, << static_cast<const void*>(outer_method->GetDexFile()) << "). MethodInfo: method_index=" << std::dec << method_index << ", is_in_bootclasspath=" << std::boolalpha - << (method_info.GetDexFileIndexKind() == MethodInfo::kKindBCP) + << (method_info.GetDexFileIndexKind() == MethodInfo::kKindBCP) << std::noboolalpha << ", dex_file_index=" << std::dec << method_info.GetDexFileIndex() << "."; return error_ss.str(); } diff --git a/runtime/stack_map.cc b/runtime/stack_map.cc index 424c608a51..19a854b70b 100644 --- a/runtime/stack_map.cc +++ b/runtime/stack_map.cc @@ -352,7 +352,8 @@ void InlineInfo::Dump(VariableIndentationOutputStream* vios, if (method_info.HasDexFileIndex()) { vios->Stream() << ", is_in_bootclasspath=" << std::boolalpha << (method_info.GetDexFileIndexKind() == MethodInfo::kKindBCP) - << ", dex_file_index=" << std::dec << method_info.GetDexFileIndex(); + << std::noboolalpha << ", dex_file_index=" << std::dec + << method_info.GetDexFileIndex(); } } vios->Stream() << ")\n"; |