< prev index next >
src/hotspot/os/windows/os_windows.inline.hpp
Print this page
rev 52814 : 8214773: Replace use of thread unsafe strtok
Reviewed-by:
*** 30,39 ****
--- 30,44 ----
inline const char* os::dll_file_extension() { return ".dll"; }
inline const int os::default_file_open_flags() { return O_BINARY | O_NOINHERIT;}
+ // Use threadsafe version of strtok
+ inline char* os::strtok(char *str, const char *delim, char **saveptr) {
+ return strtok_s(str, delim, saveptr);
+ }
+
// File names are case-insensitive on windows only
inline int os::file_name_strncmp(const char* s, const char* t, size_t num) {
return _strnicmp(s, t, num);
}
< prev index next >