Skip to content

Commit b0c29d6

Browse files
committed
svm: don't use Path in startup code where stuff the FileSystemProviders might not be initialized
1 parent 128629d commit b0c29d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/attach/PosixAttachApiSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
package com.oracle.svm.core.posix.attach;
2828

29-
import java.nio.file.Paths;
29+
import java.nio.file.FileSystems;
3030
import java.util.concurrent.atomic.AtomicBoolean;
3131
import java.util.concurrent.locks.ReentrantLock;
3232

@@ -181,7 +181,7 @@ private String getSocketFilePath() {
181181
if (cachedSocketFilePath == null) {
182182
long pid = ProcessHandle.current().pid();
183183
String tempDir = Target_jdk_internal_vm_VMSupport.getVMTemporaryDirectory();
184-
cachedSocketFilePath = Paths.get(tempDir, ".java_pid" + pid).toString();
184+
cachedSocketFilePath = tempDir + FileSystems.getDefault().getSeparator() + ".java_pid" + pid;
185185
}
186186
return cachedSocketFilePath;
187187
}

0 commit comments

Comments
 (0)