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

Commit 3ae56fd

Browse files
author
Tom Rodriguez
committedApr 2, 2020
8191930: [Graal] emits unparseable XML into compile log
Reviewed-by: kvn
1 parent 487070c commit 3ae56fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/hotspot/share/compiler/compileTask.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,10 @@ void CompileTask::log_task_done(CompileLog* log) {
393393
if (!_is_success) {
394394
assert(_failure_reason != NULL, "missing");
395395
const char* reason = _failure_reason != NULL ? _failure_reason : "unknown";
396-
log->elem("failure reason='%s'", reason);
396+
log->begin_elem("failure reason='");
397+
log->text("%s", reason);
398+
log->print("'");
399+
log->end_elem();
397400
}
398401

399402
// <task_done ... stamp='1.234'> </task>

0 commit comments

Comments
 (0)