Mercurial > hg > graal-compiler
comparison src/share/vm/prims/jvm.cpp @ 17962:a103c376459a
8041980: (hotspot) sun/jvmstat/monitor/MonitoredVm/CR6672135.java failing on all platforms
Reviewed-by: mgronlun, kamg
author | sla |
---|---|
date | Mon, 28 Apr 2014 09:27:47 +0200 |
parents | 78bbf4d43a14 |
children | 52b4284cb496 1e657b902392 ce8f6bb717c9 |
comparison
equal
deleted
inserted
replaced
17958:41daa2e6e52d | 17962: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)) |