Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
547:1e458753107d | 548:773234c55e8c |
---|---|
325 VirtualQuery(&minfo, &minfo, sizeof(minfo)); | 325 VirtualQuery(&minfo, &minfo, sizeof(minfo)); |
326 sz = (size_t)os::current_stack_base() - (size_t)minfo.AllocationBase; | 326 sz = (size_t)os::current_stack_base() - (size_t)minfo.AllocationBase; |
327 return sz; | 327 return sz; |
328 } | 328 } |
329 | 329 |
330 struct tm* os::localtime_pd(const time_t* clock, struct tm* res) { | |
331 const struct tm* time_struct_ptr = localtime(clock); | |
332 if (time_struct_ptr != NULL) { | |
333 *res = *time_struct_ptr; | |
334 return res; | |
335 } | |
336 return NULL; | |
337 } | |
330 | 338 |
331 LONG WINAPI topLevelExceptionFilter(struct _EXCEPTION_POINTERS* exceptionInfo); | 339 LONG WINAPI topLevelExceptionFilter(struct _EXCEPTION_POINTERS* exceptionInfo); |
332 | 340 |
333 // Thread start routine for all new Java threads | 341 // Thread start routine for all new Java threads |
334 static unsigned __stdcall java_start(Thread* thread) { | 342 static unsigned __stdcall java_start(Thread* thread) { |