Mercurial > hg > truffle
comparison src/share/vm/prims/jvm.cpp @ 18067:1e657b902392
Merge
author | asaha |
---|---|
date | Tue, 10 Jun 2014 14:52:20 -0700 |
parents | 54bc75c144b0 a103c376459a |
children | eaf39a954227 8cb56c8cb30d |
comparison
equal
deleted
inserted
replaced
18066:4930a95e6ef5 | 18067: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)) |