Fix aotLoader.cpp on Windows JDK-8152988-branch
authorerikj
Sat, 13 Oct 2018 19:28:10 +0200
branchJDK-8152988-branch
changeset 56967 23adfcd11311
parent 56966 4eb1ec86dd02
child 56969 25f960592a92
Fix aotLoader.cpp on Windows
src/hotspot/share/aot/aotLoader.cpp
--- a/src/hotspot/share/aot/aotLoader.cpp	Sat Oct 13 03:05:21 2018 +0200
+++ b/src/hotspot/share/aot/aotLoader.cpp	Sat Oct 13 19:28:10 2018 +0200
@@ -147,7 +147,12 @@
         char* end = cp + len;
         while (cp < end) {
           const char* name = cp;
-          while ((*cp) != '\0' && (*cp) != '\n' && (*cp) != ',' && (*cp) != ':' && (*cp) != ';')  cp++;
+#ifdef _WINDOWS
+          char pathSep = ';';
+#else
+          char pathSep = ':';
+#endif
+          while ((*cp) != '\0' && (*cp) != '\n' && (*cp) != ',' && (*cp) != pathSep)  cp++;
           cp[0] = '\0';  // Terminate name
           cp++;
           load_library(name, true);