mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8041980: (hotspot) sun/jvmstat/monitor/MonitoredVm/CR6672135.java failing on all platforms
Reviewed-by: mgronlun, kamg
This commit is contained in:
parent
3852709df9
commit
c1abf998a6
11 changed files with 32 additions and 3 deletions
|
@ -386,6 +386,23 @@ JVM_ENTRY(jobject, JVM_InitProperties(JNIEnv *env, jobject properties))
|
|||
JVM_END
|
||||
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
JVM_ENTRY(jstring, JVM_GetTemporaryDirectory(JNIEnv *env))
|
||||
JVMWrapper("JVM_GetTemporaryDirectory");
|
||||
HandleMark hm(THREAD);
|
||||
const char* temp_dir = os::get_temp_directory();
|
||||
Handle h = java_lang_String::create_from_platform_dependent_str(temp_dir, CHECK_NULL);
|
||||
return (jstring) JNIHandles::make_local(env, h());
|
||||
JVM_END
|
||||
|
||||
|
||||
// java.lang.Runtime /////////////////////////////////////////////////////////////////////////
|
||||
|
||||
extern volatile jint vm_created;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue