RFR(S): 8214773: Replace use of thread unsafe strtok
nils.eliasson at oracle.com
Tue Dec 4 10:01:14 UTC 2018
Hotspot has a few uses of the thread unsafe strtok function. Most of the
them are probably benign since they happen during startup. The use in
compilerDirectives however has been reported to cause errors in user
applications that also use strtok though jni. (See bug report or mail to
In this patch I replace all uses of strtok. The call need to go through
the os specific files since windows uses a different function (strtok_s)
than the rest of the platforms (strtok_r).
Thanks to Andre Gillet at Nuance who reported the bug.
More information about the hotspot-dev