mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8219414: SA: jhsdb jsnap throws UnmappedAddressException with core generated by gcore
Reviewed-by: cjplummer, jgeorge
This commit is contained in:
parent
4aac63bb93
commit
a38277e67b
2 changed files with 14 additions and 8 deletions
|
@ -131,6 +131,7 @@
|
|||
|
||||
enum CoredumpFilterBit {
|
||||
FILE_BACKED_PVT_BIT = 1 << 2,
|
||||
FILE_BACKED_SHARED_BIT = 1 << 3,
|
||||
LARGEPAGES_BIT = 1 << 6,
|
||||
DAX_SHARED_BIT = 1 << 8
|
||||
};
|
||||
|
@ -1357,8 +1358,8 @@ void os::shutdown() {
|
|||
void os::abort(bool dump_core, void* siginfo, const void* context) {
|
||||
os::shutdown();
|
||||
if (dump_core) {
|
||||
#if INCLUDE_CDS
|
||||
if (UseSharedSpaces && DumpPrivateMappingsInCore) {
|
||||
#ifndef ZERO
|
||||
if (DumpPrivateMappingsInCore) {
|
||||
ClassLoader::close_jrt_image();
|
||||
}
|
||||
#endif
|
||||
|
@ -3432,8 +3433,6 @@ bool os::Linux::hugetlbfs_sanity_check(bool warn, size_t page_size) {
|
|||
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
|
||||
|
@ -5131,11 +5130,13 @@ jint os::init_2(void) {
|
|||
set_coredump_filter(DAX_SHARED_BIT);
|
||||
}
|
||||
|
||||
#if INCLUDE_CDS
|
||||
if (UseSharedSpaces && DumpPrivateMappingsInCore) {
|
||||
if (DumpPrivateMappingsInCore) {
|
||||
set_coredump_filter(FILE_BACKED_PVT_BIT);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (DumpSharedMappingsInCore) {
|
||||
set_coredump_filter(FILE_BACKED_SHARED_BIT);
|
||||
}
|
||||
|
||||
return JNI_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue