< prev index next >

src/hotspot/os/linux/os_linux.cpp

Print this page

        

*** 129,138 **** --- 129,139 ---- // for timer info max values which include all bits #define ALL_64_BITS CONST64(0xFFFFFFFFFFFFFFFF) enum CoredumpFilterBit { FILE_BACKED_PVT_BIT = 1 << 2, + FILE_BACKED_SHARED_BIT = 1 << 3, LARGEPAGES_BIT = 1 << 6, DAX_SHARED_BIT = 1 << 8 }; ////////////////////////////////////////////////////////////////////////////////
*** 1355,1366 **** // called from signal handler. Before adding something to os::abort(), make // sure it is async-safe and can handle partially initialized VM. void os::abort(bool dump_core, void* siginfo, const void* context) { os::shutdown(); if (dump_core) { ! #if INCLUDE_CDS ! if (UseSharedSpaces && DumpPrivateMappingsInCore) { ClassLoader::close_jrt_image(); } #endif #ifndef PRODUCT fdStream out(defaultStream::output_fd()); --- 1356,1367 ---- // called from signal handler. Before adding something to os::abort(), make // sure it is async-safe and can handle partially initialized VM. void os::abort(bool dump_core, void* siginfo, const void* context) { os::shutdown(); if (dump_core) { ! #ifndef ZERO ! if (DumpPrivateMappingsInCore) { ClassLoader::close_jrt_image(); } #endif #ifndef PRODUCT fdStream out(defaultStream::output_fd());
*** 3430,3441 **** } return result; } - // Set the coredump_filter bits to include largepages in core dump (bit 6) - // // From the coredump_filter documentation: // // - (bit 0) anonymous private memory // - (bit 1) anonymous shared memory // - (bit 2) file-backed private memory --- 3431,3440 ----
*** 5129,5143 **** if (!FLAG_IS_DEFAULT(AllocateHeapAt) || !FLAG_IS_DEFAULT(AllocateOldGenAt)) { set_coredump_filter(DAX_SHARED_BIT); } ! #if INCLUDE_CDS ! if (UseSharedSpaces && DumpPrivateMappingsInCore) { set_coredump_filter(FILE_BACKED_PVT_BIT); } ! #endif return JNI_OK; } // Mark the polling page as unreadable --- 5128,5144 ---- if (!FLAG_IS_DEFAULT(AllocateHeapAt) || !FLAG_IS_DEFAULT(AllocateOldGenAt)) { set_coredump_filter(DAX_SHARED_BIT); } ! if (DumpPrivateMappingsInCore) { set_coredump_filter(FILE_BACKED_PVT_BIT); } ! ! if (DumpSharedMappingsInCore) { ! set_coredump_filter(FILE_BACKED_SHARED_BIT); ! } return JNI_OK; } // Mark the polling page as unreadable
< prev index next >