changeset 52293:be166557c8dc

8212706: nmethod jvmci_installed_code_name need to be XML escaped Summary: Call text instead of print to escape chars properly Reviewed-by: thartmann
author ecaspole
date Wed, 24 Oct 2018 11:02:55 -0400
parents 1587306fe23f
children eefa65e142af
files src/hotspot/share/code/nmethod.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
 }