src/os/solaris/vm/os_solaris.cpp

changeset 3903
65906dc96aa1
parent 3900
d2a62e0f25eb
child 4037
da91efe96a93
     1.1 --- a/src/os/solaris/vm/os_solaris.cpp	Tue Jul 03 01:41:29 2012 -0400
     1.2 +++ b/src/os/solaris/vm/os_solaris.cpp	Tue Jul 03 17:35:00 2012 -0700
     1.3 @@ -6537,3 +6537,16 @@
     1.4     INTERRUPTIBLE_RETURN_INT_NORESTART(::bind(fd, him, len),\
     1.5                                        os::Solaris::clear_interrupted);
     1.6  }
     1.7 +
     1.8 +// Get the default path to the core file
     1.9 +// Returns the length of the string
    1.10 +int os::get_core_path(char* buffer, size_t bufferSize) {
    1.11 +  const char* p = get_current_directory(buffer, bufferSize);
    1.12 +
    1.13 +  if (p == NULL) {
    1.14 +    assert(p != NULL, "failed to get current directory");
    1.15 +    return 0;
    1.16 +  }
    1.17 +
    1.18 +  return strlen(buffer);
    1.19 +}

mercurial