8212706: nmethod jvmci_installed_code_name need to be XML escaped
authorecaspole
Wed, 24 Oct 2018 11:02:55 -0400
changeset 52272 be166557c8dc
parent 52271 1587306fe23f
child 52274 eefa65e142af
8212706: nmethod jvmci_installed_code_name need to be XML escaped Summary: Call text instead of print to escape chars properly Reviewed-by: thartmann
src/hotspot/share/code/nmethod.cpp
--- 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
 }