8212706: nmethod jvmci_installed_code_name need to be XML escaped
Summary: Call text instead of print to escape chars properly
Reviewed-by: thartmann
--- a/src/hotspot/share/code/nmethod.cpp Wed Oct 24 16:22:34 2018 +0200
+++ b/src/hotspot/share/code/nmethod.cpp Wed Oct 24 11:02:55 2018 -0400
@@ -790,7 +790,9 @@
char buffer[O_BUFLEN];
char* jvmci_name = jvmci_installed_code_name(buffer, O_BUFLEN);
if (jvmci_name != NULL) {
- log->print(" jvmci_installed_code_name='%s'", jvmci_name);
+ log->print(" jvmci_installed_code_name='");
+ log->text("%s", jvmci_name);
+ log->print("'");
}
#endif
}