jdk/src/share/classes/sun/misc/VMSupport.java
changeset 24268 43fb1c9e594c
parent 24120 9932a1e8722d
--- a/jdk/src/share/classes/sun/misc/VMSupport.java	Thu May 08 08:22:25 2014 +0900
+++ b/jdk/src/share/classes/sun/misc/VMSupport.java	Fri Apr 25 17:19:49 2014 +0200
@@ -97,4 +97,14 @@
             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();
 }