hotspot/src/os/linux/vm/os_linux.cpp
changeset 13198 271c557a7623
parent 13195 be27e1b6a4b9
child 13932 b8d718f01df4
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Tue Jul 03 01:41:29 2012 -0400
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Tue Jul 03 17:35:00 2012 -0700
@@ -5447,6 +5447,18 @@
     return true;
 }
 
+// Get the default path to the core file
+// Returns the length of the string
+int os::get_core_path(char* buffer, size_t bufferSize) {
+  const char* p = get_current_directory(buffer, bufferSize);
+
+  if (p == NULL) {
+    assert(p != NULL, "failed to get current directory");
+    return 0;
+  }
+
+  return strlen(buffer);
+}
 
 #ifdef JAVASE_EMBEDDED
 //