--- old/src/os/solaris/vm/os_solaris.cpp 2015-03-18 10:08:02.925466000 -0700 +++ new/src/os/solaris/vm/os_solaris.cpp 2015-03-18 10:08:02.825459000 -0700 @@ -555,17 +555,6 @@ return (bind_result == 0); } -bool os::getenv(const char* name, char* buffer, int len) { - char* val = ::getenv(name); - if (val == NULL || strlen(val) + 1 > len) { - if (len > 0) buffer[0] = 0; // return a null string - return false; - } - strcpy(buffer, val); - return true; -} - - // Return true if user is running as root. bool os::have_special_privileges() {