< prev index next >

src/hotspot/os/solaris/os_solaris.inline.hpp

Print this page
rev 52814 : 8214773: Replace use of thread unsafe strtok
Reviewed-by:

*** 35,44 **** --- 35,49 ---- #include <sys/filio.h> #include <unistd.h> #include <netdb.h> #include <setjmp.h> + // Use threadsafe version of strtok + inline char* os::strtok(char *str, const char *delim, char **saveptr) { + return strtok_r(str, delim, saveptr); + } + // File names are case-insensitive on windows only inline int os::file_name_strncmp(const char* s1, const char* s2, size_t num) { return strncmp(s1, s2, num); }
< prev index next >