equal
deleted
inserted
replaced
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)) |