Mercurial > hg > graal-jvmci-8
comparison src/os/solaris/vm/os_solaris.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 | 8a25d96bcf08 |
children | 0fbdb4381b99 6af0a709d52b |
comparison
equal
deleted
inserted
replaced
547:1e458753107d | 548:773234c55e8c |
---|---|
319 } | 319 } |
320 // base may not be page aligned | 320 // base may not be page aligned |
321 address base = current_stack_base(); | 321 address base = current_stack_base(); |
322 address bottom = (address)align_size_up((intptr_t)(base - size), os::vm_page_size());; | 322 address bottom = (address)align_size_up((intptr_t)(base - size), os::vm_page_size());; |
323 return (size_t)(base - bottom); | 323 return (size_t)(base - bottom); |
324 } | |
325 | |
326 struct tm* os::localtime_pd(const time_t* clock, struct tm* res) { | |
327 return localtime_r(clock, res); | |
324 } | 328 } |
325 | 329 |
326 // interruptible infrastructure | 330 // interruptible infrastructure |
327 | 331 |
328 // setup_interruptible saves the thread state before going into an | 332 // setup_interruptible saves the thread state before going into an |