diff -r 094b5d3c7159 -r 43fb1c9e594c jdk/src/share/classes/sun/misc/VMSupport.java --- 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(); }