Skip to content
Permalink
Browse files
8278643: CoreUtils.getCoreFileLocation() should print out the size of…
… the core file found

Reviewed-by: amenkov, lmesnik, sspitsyn
  • Loading branch information
plummercj committed Dec 15, 2021
1 parent 068a450 commit 54c9a99663c47b0477392a606637986bc5c87464
Showing 1 changed file with 4 additions and 2 deletions.
@@ -107,8 +107,10 @@ public static String getCoreFileLocation(String crashOutputString, long pid) thr
// Find the core file
String coreFileLocation = parseCoreFileLocationFromOutput(crashOutputString);
if (coreFileLocation != null) {
System.out.println("Found core file: " + coreFileLocation);
Asserts.assertGT(new File(coreFileLocation).length(), 0L, "Unexpected core size");
long coreFileSize = new File(coreFileLocation).length();
System.out.println("Found core file " + coreFileLocation +
", size = " + coreFileSize / 1024 / 1024 + "mb");
Asserts.assertGT(coreFileSize, 0L, "Unexpected core size");

// Make sure the core file is moved into the cwd if not already there.
Path corePath = Paths.get(coreFileLocation);

1 comment on commit 54c9a99

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 54c9a99 Dec 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.