src/share/vm/prims/jvm.cpp

changeset 6705
a103c376459a
parent 6680
78bbf4d43a14
child 6839
1e657b902392
child 6911
ce8f6bb717c9
equal deleted inserted replaced
6701:41daa2e6e52d 6705:a103c376459a
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