hotspot/src/os/posix/vm/os_posix.cpp
changeset 38254 05e46b580b4e
parent 38065 025c784d9333
child 38263 a7488329ad27
--- a/hotspot/src/os/posix/vm/os_posix.cpp	Wed May 04 11:29:05 2016 +0200
+++ b/hotspot/src/os/posix/vm/os_posix.cpp	Mon May 09 14:15:39 2016 +0300
@@ -47,6 +47,12 @@
 
 // Check core dump limit and report possible place where core can be found
 void os::check_dump_limit(char* buffer, size_t bufferSize) {
+  if (!FLAG_IS_DEFAULT(CreateCoredumpOnCrash) && !CreateCoredumpOnCrash) {
+    jio_snprintf(buffer, bufferSize, "CreateCoredumpOnCrash is disabled from command line");
+    VMError::record_coredump_status(buffer, false);
+    return;
+  }
+
   int n;
   struct rlimit rlim;
   bool success;