src/hotspot/os/linux/os_linux.cpp
changeset 53012 c1eed9867bf0
parent 52960 a6182c464b31
child 53077 33b8f6f4cdf5
child 53116 bb03098c4dde
equal deleted inserted replaced
53011:1c85328b7631 53012:c1eed9867bf0
  1352 // called from signal handler. Before adding something to os::abort(), make
  1352 // called from signal handler. Before adding something to os::abort(), make
  1353 // sure it is async-safe and can handle partially initialized VM.
  1353 // sure it is async-safe and can handle partially initialized VM.
  1354 void os::abort(bool dump_core, void* siginfo, const void* context) {
  1354 void os::abort(bool dump_core, void* siginfo, const void* context) {
  1355   os::shutdown();
  1355   os::shutdown();
  1356   if (dump_core) {
  1356   if (dump_core) {
       
  1357 #if INCLUDE_CDS
  1357     if (UseSharedSpaces && DumpPrivateMappingsInCore) {
  1358     if (UseSharedSpaces && DumpPrivateMappingsInCore) {
  1358       ClassLoader::close_jrt_image();
  1359       ClassLoader::close_jrt_image();
  1359     }
  1360     }
       
  1361 #endif
  1360 #ifndef PRODUCT
  1362 #ifndef PRODUCT
  1361     fdStream out(defaultStream::output_fd());
  1363     fdStream out(defaultStream::output_fd());
  1362     out.print_raw("Current thread is ");
  1364     out.print_raw("Current thread is ");
  1363     char buf[16];
  1365     char buf[16];
  1364     jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
  1366     jio_snprintf(buf, sizeof(buf), UINTX_FORMAT, os::current_thread_id());
  5073 
  5075 
  5074   if (!FLAG_IS_DEFAULT(AllocateHeapAt)) {
  5076   if (!FLAG_IS_DEFAULT(AllocateHeapAt)) {
  5075     set_coredump_filter(DAX_SHARED_BIT);
  5077     set_coredump_filter(DAX_SHARED_BIT);
  5076   }
  5078   }
  5077 
  5079 
       
  5080 #if INCLUDE_CDS
  5078   if (UseSharedSpaces && DumpPrivateMappingsInCore) {
  5081   if (UseSharedSpaces && DumpPrivateMappingsInCore) {
  5079     set_coredump_filter(FILE_BACKED_PVT_BIT);
  5082     set_coredump_filter(FILE_BACKED_PVT_BIT);
  5080   }
  5083   }
       
  5084 #endif
  5081 
  5085 
  5082   return JNI_OK;
  5086   return JNI_OK;
  5083 }
  5087 }
  5084 
  5088 
  5085 // Mark the polling page as unreadable
  5089 // Mark the polling page as unreadable