Skip to content

Commit c0575b8

Browse files
author
Andrew Lu
committed
8237777: "Dumping core ..." is shown despite claiming that "# No core dump will be written."
Remove the unneeded and possibly misleading message. Backport-of: 1f31afd
1 parent 8191f62 commit c0575b8

File tree

4 files changed

+0
-32
lines changed

4 files changed

+0
-32
lines changed

src/hotspot/os/aix/os_aix.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,14 +1184,6 @@ void os::shutdown() {
11841184
void os::abort(bool dump_core, void* siginfo, const void* context) {
11851185
os::shutdown();
11861186
if (dump_core) {
1187-
#ifndef PRODUCT
1188-
fdStream out(defaultStream::output_fd());
1189-
out.print_raw("Current thread is ");
1190-
char buf[16];
1191-
jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
1192-
out.print_raw_cr(buf);
1193-
out.print_raw_cr("Dumping core ...");
1194-
#endif
11951187
::abort(); // dump core
11961188
}
11971189

src/hotspot/os/bsd/os_bsd.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,14 +1092,6 @@ void os::shutdown() {
10921092
void os::abort(bool dump_core, void* siginfo, const void* context) {
10931093
os::shutdown();
10941094
if (dump_core) {
1095-
#ifndef PRODUCT
1096-
fdStream out(defaultStream::output_fd());
1097-
out.print_raw("Current thread is ");
1098-
char buf[16];
1099-
jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
1100-
out.print_raw_cr(buf);
1101-
out.print_raw_cr("Dumping core ...");
1102-
#endif
11031095
::abort(); // dump core
11041096
}
11051097

src/hotspot/os/linux/os_linux.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,14 +1648,6 @@ void os::abort(bool dump_core, void* siginfo, const void* context) {
16481648
if (DumpPrivateMappingsInCore) {
16491649
ClassLoader::close_jrt_image();
16501650
}
1651-
#ifndef PRODUCT
1652-
fdStream out(defaultStream::output_fd());
1653-
out.print_raw("Current thread is ");
1654-
char buf[16];
1655-
jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
1656-
out.print_raw_cr(buf);
1657-
out.print_raw_cr("Dumping core ...");
1658-
#endif
16591651
::abort(); // dump core
16601652
}
16611653

src/hotspot/os/solaris/os_solaris.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,14 +1332,6 @@ void os::shutdown() {
13321332
void os::abort(bool dump_core, void* siginfo, const void* context) {
13331333
os::shutdown();
13341334
if (dump_core) {
1335-
#ifndef PRODUCT
1336-
fdStream out(defaultStream::output_fd());
1337-
out.print_raw("Current thread is ");
1338-
char buf[16];
1339-
jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
1340-
out.print_raw_cr(buf);
1341-
out.print_raw_cr("Dumping core ...");
1342-
#endif
13431335
::abort(); // dump core (for debugging)
13441336
}
13451337

0 commit comments

Comments
 (0)