Skip to content

Commit

Permalink
8237777: "Dumping core ..." is shown despite claiming that "# No core…
Browse files Browse the repository at this point in the history
… dump will be written."

Remove the unneeded and possibly misleading message.

Reviewed-by: dholmes, ysuenaga
  • Loading branch information
Gerard Ziemski committed May 6, 2020
1 parent 09287ab commit 1f31afd
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 deletions.
8 changes: 0 additions & 8 deletions src/hotspot/os/aix/os_aix.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1180,14 +1180,6 @@ void os::shutdown() {
void os::abort(bool dump_core, void* siginfo, const void* context) { void os::abort(bool dump_core, void* siginfo, const void* context) {
os::shutdown(); os::shutdown();
if (dump_core) { if (dump_core) {
#ifndef PRODUCT
fdStream out(defaultStream::output_fd());
out.print_raw("Current thread is ");
char buf[16];
jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
out.print_raw_cr(buf);
out.print_raw_cr("Dumping core ...");
#endif
::abort(); // dump core ::abort(); // dump core
} }


Expand Down
8 changes: 0 additions & 8 deletions src/hotspot/os/bsd/os_bsd.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1070,14 +1070,6 @@ void os::shutdown() {
void os::abort(bool dump_core, void* siginfo, const void* context) { void os::abort(bool dump_core, void* siginfo, const void* context) {
os::shutdown(); os::shutdown();
if (dump_core) { if (dump_core) {
#ifndef PRODUCT
fdStream out(defaultStream::output_fd());
out.print_raw("Current thread is ");
char buf[16];
jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
out.print_raw_cr(buf);
out.print_raw_cr("Dumping core ...");
#endif
::abort(); // dump core ::abort(); // dump core
} }


Expand Down
8 changes: 0 additions & 8 deletions src/hotspot/os/linux/os_linux.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1520,14 +1520,6 @@ void os::abort(bool dump_core, void* siginfo, const void* context) {
if (DumpPrivateMappingsInCore) { if (DumpPrivateMappingsInCore) {
ClassLoader::close_jrt_image(); ClassLoader::close_jrt_image();
} }
#ifndef PRODUCT
fdStream out(defaultStream::output_fd());
out.print_raw("Current thread is ");
char buf[16];
jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
out.print_raw_cr(buf);
out.print_raw_cr("Dumping core ...");
#endif
::abort(); // dump core ::abort(); // dump core
} }


Expand Down
8 changes: 0 additions & 8 deletions src/hotspot/os/solaris/os_solaris.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1147,14 +1147,6 @@ void os::shutdown() {
void os::abort(bool dump_core, void* siginfo, const void* context) { void os::abort(bool dump_core, void* siginfo, const void* context) {
os::shutdown(); os::shutdown();
if (dump_core) { if (dump_core) {
#ifndef PRODUCT
fdStream out(defaultStream::output_fd());
out.print_raw("Current thread is ");
char buf[16];
jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
out.print_raw_cr(buf);
out.print_raw_cr("Dumping core ...");
#endif
::abort(); // dump core (for debugging) ::abort(); // dump core (for debugging)
} }


Expand Down

0 comments on commit 1f31afd

Please sign in to comment.