mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
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:
parent
4be1a50ed3
commit
0badccf962
5 changed files with 23 additions and 8 deletions
|
@ -323,6 +323,10 @@ size_t os::current_stack_size() {
|
|||
return (size_t)(base - bottom);
|
||||
}
|
||||
|
||||
struct tm* os::localtime_pd(const time_t* clock, struct tm* res) {
|
||||
return localtime_r(clock, res);
|
||||
}
|
||||
|
||||
// interruptible infrastructure
|
||||
|
||||
// setup_interruptible saves the thread state before going into an
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue