8212706: nmethod jvmci_installed_code_name need to be XML escaped

Call text instead of print to escape chars properly

Reviewed-by: thartmann
This commit is contained in:
Eric Caspole 2018-10-24 11:02:55 -04:00
parent 3a48e68b1a
commit 5d9ffc2d03

View File

@ -790,7 +790,9 @@ void nmethod::log_identity(xmlStream* log) const {
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
}