src/share/vm/prims/jvm.cpp

changeset 6839
1e657b902392
parent 6830
54bc75c144b0
parent 6705
a103c376459a
child 6876
710a3c8b516e
child 7241
8cb56c8cb30d
equal deleted inserted replaced
6838:4930a95e6ef5 6839:1e657b902392
390 390
391 return properties; 391 return properties;
392 JVM_END 392 JVM_END
393 393
394 394
395 /*
396 * Return the temporary directory that the VM uses for the attach
397 * and perf data files.
398 *
399 * It is important that this directory is well-known and the
400 * same for all VM instances. It cannot be affected by configuration
401 * variables such as java.io.tmpdir.
402 */
403 JVM_ENTRY(jstring, JVM_GetTemporaryDirectory(JNIEnv *env))
404 JVMWrapper("JVM_GetTemporaryDirectory");
405 HandleMark hm(THREAD);
406 const char* temp_dir = os::get_temp_directory();
407 Handle h = java_lang_String::create_from_platform_dependent_str(temp_dir, CHECK_NULL);
408 return (jstring) JNIHandles::make_local(env, h());
409 JVM_END
410
411
395 // java.lang.Runtime ///////////////////////////////////////////////////////////////////////// 412 // java.lang.Runtime /////////////////////////////////////////////////////////////////////////
396 413
397 extern volatile jint vm_created; 414 extern volatile jint vm_created;
398 415
399 JVM_ENTRY_NO_ENV(void, JVM_Exit(jint code)) 416 JVM_ENTRY_NO_ENV(void, JVM_Exit(jint code))

mercurial