src/share/classes/sun/misc/VMSupport.java

Print this page
rev 9525 : [mq]: 8033104-jvmstat

@@ -95,6 +95,16 @@
             return false;
         } catch (IOException ioe) {
             throw new RuntimeException(ioe.getMessage());
         }
     }
+
+    /*
+     * Return the temporary directory that the VM uses for the attach
+     * and perf data files.
+     *
+     * It is important that this directory is well-known and the
+     * same for all VM instances. It cannot be affected by configuration
+     * variables such as java.io.tmpdir.
+     */
+    public static native String getVMTemporaryDirectory();
 }