OpenJDK / portola / portola
changeset 56808:f4290bf1cc21
8233137: runtime/ErrorHandling/VeryEarlyAssertTest.java fails after 8232080
Reviewed-by: stuefe, iignatyev, mchung
author | mr |
---|---|
date | Tue, 29 Oct 2019 13:52:04 -0700 |
parents | 67a3f50b14ae |
children | f1e6442241ca |
files | src/hotspot/share/utilities/vmError.cpp |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/share/utilities/vmError.cpp Tue Oct 29 12:52:03 2019 -0700 +++ b/src/hotspot/share/utilities/vmError.cpp Tue Oct 29 13:52:04 2019 -0700 @@ -128,12 +128,14 @@ static void print_bug_submit_message(outputStream *out, Thread *thread) { if (out == NULL) return; - out->print_raw_cr("# If you would like to submit a bug report, please visit:"); - out->print_raw ("# "); const char *url = Arguments::java_vendor_url_bug(); if (url == NULL || *url == '\0') url = JDK_Version::runtime_vendor_vm_bug_url(); - out->print_raw_cr(url); + if (url != NULL && *url != '\0') { + out->print_raw_cr("# If you would like to submit a bug report, please visit:"); + out->print_raw ("# "); + out->print_raw_cr(url); + } // If the crash is in native code, encourage user to submit a bug to the // provider of that code. if (thread && thread->is_Java_thread() &&