--- old/src/os/solaris/vm/os_solaris.cpp 2015-03-26 02:34:15.118733702 -0400 +++ new/src/os/solaris/vm/os_solaris.cpp 2015-03-26 02:34:13.974669338 -0400 @@ -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() {