hotspot/src/share/vm/prims/jvm.cpp
changeset 24242 73337a12595a
parent 23999 22eb7be3d99d
child 24426 0a69c8cdfca9
child 24351 61b33cc6d3cf
equal deleted inserted replaced
24240:1b9b92b51f60 24242:73337a12595a
   384 
   384 
   385   return properties;
   385   return properties;
   386 JVM_END
   386 JVM_END
   387 
   387 
   388 
   388 
       
   389 /*
       
   390  * Return the temporary directory that the VM uses for the attach
       
   391  * and perf data files.
       
   392  *
       
   393  * It is important that this directory is well-known and the
       
   394  * same for all VM instances. It cannot be affected by configuration
       
   395  * variables such as java.io.tmpdir.
       
   396  */
       
   397 JVM_ENTRY(jstring, JVM_GetTemporaryDirectory(JNIEnv *env))
       
   398   JVMWrapper("JVM_GetTemporaryDirectory");
       
   399   HandleMark hm(THREAD);
       
   400   const char* temp_dir = os::get_temp_directory();
       
   401   Handle h = java_lang_String::create_from_platform_dependent_str(temp_dir, CHECK_NULL);
       
   402   return (jstring) JNIHandles::make_local(env, h());
       
   403 JVM_END
       
   404 
       
   405 
   389 // java.lang.Runtime /////////////////////////////////////////////////////////////////////////
   406 // java.lang.Runtime /////////////////////////////////////////////////////////////////////////
   390 
   407 
   391 extern volatile jint vm_created;
   408 extern volatile jint vm_created;
   392 
   409 
   393 JVM_ENTRY_NO_ENV(void, JVM_Exit(jint code))
   410 JVM_ENTRY_NO_ENV(void, JVM_Exit(jint code))