src/os/linux/vm/os_linux.cpp

changeset 3903
65906dc96aa1
parent 3900
d2a62e0f25eb
child 4136
bf2edd3c9b0f
     1.1 --- a/src/os/linux/vm/os_linux.cpp	Tue Jul 03 01:41:29 2012 -0400
     1.2 +++ b/src/os/linux/vm/os_linux.cpp	Tue Jul 03 17:35:00 2012 -0700
     1.3 @@ -5447,6 +5447,18 @@
     1.4      return true;
     1.5  }
     1.6  
     1.7 +// Get the default path to the core file
     1.8 +// Returns the length of the string
     1.9 +int os::get_core_path(char* buffer, size_t bufferSize) {
    1.10 +  const char* p = get_current_directory(buffer, bufferSize);
    1.11 +
    1.12 +  if (p == NULL) {
    1.13 +    assert(p != NULL, "failed to get current directory");
    1.14 +    return 0;
    1.15 +  }
    1.16 +
    1.17 +  return strlen(buffer);
    1.18 +}
    1.19  
    1.20  #ifdef JAVASE_EMBEDDED
    1.21  //

mercurial