jdk/src/jdk.jvmstat/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/PerfDataFile.java
equal
deleted
inserted
replaced
25 |
25 |
26 package sun.jvmstat.perfdata.monitor.protocol.local; |
26 package sun.jvmstat.perfdata.monitor.protocol.local; |
27 |
27 |
28 import java.io.File; |
28 import java.io.File; |
29 import java.io.FilenameFilter; |
29 import java.io.FilenameFilter; |
|
30 import jdk.internal.vm.VMSupport; |
30 |
31 |
31 /** |
32 /** |
32 * Class to provide translations from the local Vm Identifier |
33 * Class to provide translations from the local Vm Identifier |
33 * name space into the file system name space and vice-versa. |
34 * name space into the file system name space and vice-versa. |
34 * <p> |
35 * <p> |
289 /* |
290 /* |
290 * For this to work, the target VM and this code need to use |
291 * For this to work, the target VM and this code need to use |
291 * the same directory. Instead of guessing which directory the |
292 * the same directory. Instead of guessing which directory the |
292 * VM is using, we will ask. |
293 * VM is using, we will ask. |
293 */ |
294 */ |
294 String tmpdir = sun.misc.VMSupport.getVMTemporaryDirectory(); |
295 String tmpdir = VMSupport.getVMTemporaryDirectory(); |
295 |
296 |
296 /* |
297 /* |
297 * Assure that the string returned has a trailing File.separator |
298 * Assure that the string returned has a trailing File.separator |
298 * character. This check was added because the Linux implementation |
299 * character. This check was added because the Linux implementation |
299 * changed such that the java.io.tmpdir string no longer terminates |
300 * changed such that the java.io.tmpdir string no longer terminates |