6800586: -XX:+PrintGCDateStamps is using mt-unsafe localtime function

Replaced localtime() with localtime_r() on Solaris and Linux.

Reviewed-by: apetrusenko, dholmes, jmasa
This commit is contained in:
Y. Srinivas Ramakrishna 2009-02-09 12:26:05 -08:00
parent 4be1a50ed3
commit 0badccf962
5 changed files with 23 additions and 8 deletions

View file

@ -1432,6 +1432,10 @@ char * os::local_time_string(char *buf, size_t buflen) {
return buf;
}
struct tm* os::localtime_pd(const time_t* clock, struct tm* res) {
return localtime_r(clock, res);
}
////////////////////////////////////////////////////////////////////////////////
// runtime exit support