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
diff --git a/runtime/entrypoints/entrypoint_utils-inl.h b/runtime/entrypoints/entrypoint_utils-inl.h
index d3370af..b36c5c3 100644
--- a/runtime/entrypoints/entrypoint_utils-inl.h
+++ b/runtime/entrypoints/entrypoint_utils-inl.h
@@ -96,7 +96,7 @@
<< 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 424c608..19a854b 100644
--- a/runtime/stack_map.cc
+++ b/runtime/stack_map.cc
@@ -352,7 +352,8 @@
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";