> --- old/src/jdk.hotspot.agent/macosx/native/libsaproc/ps_core.c 2018-04-24 04:20:44.172000000 +0530 > +++ new/src/jdk.hotspot.agent/macosx/native/libsaproc/ps_core.c 2018-04-24 04:20:43.960000000 +0530 209c209,228 < @@ -387,7 +410,7 @@ --- > @@ -282,15 +305,14 @@ > return true; > } > > +// mangled name of Arguments::SharedArchivePath > +#define SHARED_ARCHIVE_PATH_SYM "__ZN9Arguments17SharedArchivePathE" > + > #ifdef __APPLE__ > #define USE_SHARED_SPACES_SYM "_UseSharedSpaces" > -// mangled name of Arguments::SharedArchivePath > -#define SHARED_ARCHIVE_PATH_SYM "_ZN9Arguments17SharedArchivePathE" > #define LIBJVM_NAME "/libjvm.dylib" > #else > #define USE_SHARED_SPACES_SYM "UseSharedSpaces" > -// mangled name of Arguments::SharedArchivePath > -#define SHARED_ARCHIVE_PATH_SYM "__ZN9Arguments17SharedArchivePathE" > #define LIBJVM_NAME "/libjvm.so" > #endif // __APPLE_ > > @@ -387,7 +409,7 @@ < --- /dev/null 2018-04-05 21:39:59.879494000 +0530 < +++ new/test/hotspot/jtreg/serviceability/sa/ClhsdbCDSCore.java 2018-04-06 15:03:12.970483199 +0530 < @@ -0,0 +1,227 @@ --- > --- /dev/null 2018-04-23 19:36:47.044000000 +0530 > +++ new/test/hotspot/jtreg/serviceability/sa/ClhsdbCDSCore.java 2018-04-24 04:20:48.032000000 +0530 > @@ -0,0 +1,244 @@ 671a691 > +import java.util.Scanner; 684a705 > + private static final String CORE_PATTERN_FILE_NAME = "/proc/sys/kernel/core_pattern"; 722a744,758 > + } else if (Platform.isLinux()) { > + // Check if a crash report tool is installed. > + File corePatternFile = new File(CORE_PATTERN_FILE_NAME); > + Scanner scanner = new Scanner(corePatternFile); > + while (scanner.hasNextLine()) { > + String line = scanner.nextLine(); > + line = line.trim(); > + System.out.println(line); > + if (line.startsWith("|")) { > + throw new Error( > + "\nThis system uses a crash report tool ($cat /proc/sys/kernel/core_pattern).\n" + > + "Core files might not be generated. Please reset /proc/sys/kernel/core_pattern\n" + > + "to enable core generation."); > + } > + } 843c879 < + } --- > + }