Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8191930: [Graal] emits unparseable XML into compile log
Browse files Browse the repository at this point in the history
Reviewed-by: kvn
  • Loading branch information
Tom Rodriguez committed Apr 2, 2020
1 parent 487070c commit 3ae56fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hotspot/share/compiler/compileTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,10 @@ void CompileTask::log_task_done(CompileLog* log) {
if (!_is_success) {
assert(_failure_reason != NULL, "missing");
const char* reason = _failure_reason != NULL ? _failure_reason : "unknown";
log->elem("failure reason='%s'", reason);
log->begin_elem("failure reason='");
log->text("%s", reason);
log->print("'");
log->end_elem();
}

// <task_done ... stamp='1.234'> </task>
Expand Down

0 comments on commit 3ae56fd

Please sign in to comment.