126 return buf; |
126 return buf; |
127 } |
127 } |
128 |
128 |
129 static void print_bug_submit_message(outputStream *out, Thread *thread) { |
129 static void print_bug_submit_message(outputStream *out, Thread *thread) { |
130 if (out == NULL) return; |
130 if (out == NULL) return; |
131 out->print_raw_cr("# If you would like to submit a bug report, please visit:"); |
|
132 out->print_raw ("# "); |
|
133 const char *url = Arguments::java_vendor_url_bug(); |
131 const char *url = Arguments::java_vendor_url_bug(); |
134 if (url == NULL || *url == '\0') |
132 if (url == NULL || *url == '\0') |
135 url = JDK_Version::runtime_vendor_vm_bug_url(); |
133 url = JDK_Version::runtime_vendor_vm_bug_url(); |
136 out->print_raw_cr(url); |
134 if (url != NULL && *url != '\0') { |
|
135 out->print_raw_cr("# If you would like to submit a bug report, please visit:"); |
|
136 out->print_raw ("# "); |
|
137 out->print_raw_cr(url); |
|
138 } |
137 // If the crash is in native code, encourage user to submit a bug to the |
139 // If the crash is in native code, encourage user to submit a bug to the |
138 // provider of that code. |
140 // provider of that code. |
139 if (thread && thread->is_Java_thread() && |
141 if (thread && thread->is_Java_thread() && |
140 !thread->is_hidden_from_external_view()) { |
142 !thread->is_hidden_from_external_view()) { |
141 JavaThread* jt = (JavaThread*)thread; |
143 JavaThread* jt = (JavaThread*)thread; |