Mercurial > hg > graal-compiler
comparison src/share/vm/prims/jvm.cpp @ 17016:3482684330ee
cherry-pick: 8041980: (hotspot) sun/jvmstat/monitor/MonitoredVm/CR6672135.java failing on all platforms
Reviewed-by: mgronlun, kamg
Contributed-by: sla
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Tue, 02 Sep 2014 22:19:44 +0200 |
parents | 5c0f2b338874 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
17015:ffddcdca8e74 | 17016:3482684330ee |
---|---|
389 | 389 |
390 return properties; | 390 return properties; |
391 JVM_END | 391 JVM_END |
392 | 392 |
393 | 393 |
394 /* | |
395 * Return the temporary directory that the VM uses for the attach | |
396 * and perf data files. | |
397 * | |
398 * It is important that this directory is well-known and the | |
399 * same for all VM instances. It cannot be affected by configuration | |
400 * variables such as java.io.tmpdir. | |
401 */ | |
402 JVM_ENTRY(jstring, JVM_GetTemporaryDirectory(JNIEnv *env)) | |
403 JVMWrapper("JVM_GetTemporaryDirectory"); | |
404 HandleMark hm(THREAD); | |
405 const char* temp_dir = os::get_temp_directory(); | |
406 Handle h = java_lang_String::create_from_platform_dependent_str(temp_dir, CHECK_NULL); | |
407 return (jstring) JNIHandles::make_local(env, h()); | |
408 JVM_END | |
409 | |
410 | |
394 // java.lang.Runtime ///////////////////////////////////////////////////////////////////////// | 411 // java.lang.Runtime ///////////////////////////////////////////////////////////////////////// |
395 | 412 |
396 extern volatile jint vm_created; | 413 extern volatile jint vm_created; |
397 | 414 |
398 JVM_ENTRY_NO_ENV(void, JVM_Exit(jint code)) | 415 JVM_ENTRY_NO_ENV(void, JVM_Exit(jint code)) |