Mercurial > hg > truffle
diff src/os/windows/vm/os_windows.cpp @ 548:773234c55e8c
6800586: -XX:+PrintGCDateStamps is using mt-unsafe localtime function
Summary: replaced localtime() with localtime_r() on Solaris and Linux.
Reviewed-by: apetrusenko, dholmes, jmasa
author | ysr |
---|---|
date | Mon, 09 Feb 2009 12:26:05 -0800 |
parents | 24fda36852ce |
children | 0fbdb4381b99 660978a2a31a |
line wrap: on
line diff
--- a/src/os/windows/vm/os_windows.cpp Mon Feb 09 17:33:06 2009 +0300 +++ b/src/os/windows/vm/os_windows.cpp Mon Feb 09 12:26:05 2009 -0800 @@ -327,6 +327,14 @@ return sz; } +struct tm* os::localtime_pd(const time_t* clock, struct tm* res) { + const struct tm* time_struct_ptr = localtime(clock); + if (time_struct_ptr != NULL) { + *res = *time_struct_ptr; + return res; + } + return NULL; +} LONG WINAPI topLevelExceptionFilter(struct _EXCEPTION_POINTERS* exceptionInfo);