提交 386f45e3 编写于 作者: S sla

8041980: (hotspot) sun/jvmstat/monitor/MonitoredVm/CR6672135.java failing on all platforms

Reviewed-by: mgronlun, kamg
上级 6172a8bc
...@@ -122,7 +122,7 @@ SUNWprivate_1.1 { ...@@ -122,7 +122,7 @@ SUNWprivate_1.1 {
JVM_GetClassModifiers; JVM_GetClassModifiers;
JVM_GetClassName; JVM_GetClassName;
JVM_GetClassNameUTF; JVM_GetClassNameUTF;
JVM_GetClassSignature; JVM_GetClassSignature;
JVM_GetClassSigners; JVM_GetClassSigners;
JVM_GetClassTypeAnnotations; JVM_GetClassTypeAnnotations;
JVM_GetComponentType; JVM_GetComponentType;
...@@ -163,6 +163,7 @@ SUNWprivate_1.1 { ...@@ -163,6 +163,7 @@ SUNWprivate_1.1 {
JVM_GetStackTraceElement; JVM_GetStackTraceElement;
JVM_GetSystemPackage; JVM_GetSystemPackage;
JVM_GetSystemPackages; JVM_GetSystemPackages;
JVM_GetTemporaryDirectory;
JVM_GetThreadStateNames; JVM_GetThreadStateNames;
JVM_GetThreadStateValues; JVM_GetThreadStateValues;
JVM_GetVersionInfo; JVM_GetVersionInfo;
......
...@@ -161,6 +161,7 @@ SUNWprivate_1.1 { ...@@ -161,6 +161,7 @@ SUNWprivate_1.1 {
JVM_GetStackTraceElement; JVM_GetStackTraceElement;
JVM_GetSystemPackage; JVM_GetSystemPackage;
JVM_GetSystemPackages; JVM_GetSystemPackages;
JVM_GetTemporaryDirectory;
JVM_GetThreadStateNames; JVM_GetThreadStateNames;
JVM_GetThreadStateValues; JVM_GetThreadStateValues;
JVM_GetVersionInfo; JVM_GetVersionInfo;
......
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
_JVM_GetStackTraceElement _JVM_GetStackTraceElement
_JVM_GetSystemPackage _JVM_GetSystemPackage
_JVM_GetSystemPackages _JVM_GetSystemPackages
_JVM_GetTemporaryDirectory
_JVM_GetThreadStateNames _JVM_GetThreadStateNames
_JVM_GetThreadStateValues _JVM_GetThreadStateValues
_JVM_GetVersionInfo _JVM_GetVersionInfo
......
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
_JVM_GetStackTraceElement _JVM_GetStackTraceElement
_JVM_GetSystemPackage _JVM_GetSystemPackage
_JVM_GetSystemPackages _JVM_GetSystemPackages
_JVM_GetTemporaryDirectory
_JVM_GetThreadStateNames _JVM_GetThreadStateNames
_JVM_GetThreadStateValues _JVM_GetThreadStateValues
_JVM_GetVersionInfo _JVM_GetVersionInfo
......
...@@ -122,7 +122,7 @@ SUNWprivate_1.1 { ...@@ -122,7 +122,7 @@ SUNWprivate_1.1 {
JVM_GetClassModifiers; JVM_GetClassModifiers;
JVM_GetClassName; JVM_GetClassName;
JVM_GetClassNameUTF; JVM_GetClassNameUTF;
JVM_GetClassSignature; JVM_GetClassSignature;
JVM_GetClassSigners; JVM_GetClassSigners;
JVM_GetClassTypeAnnotations; JVM_GetClassTypeAnnotations;
JVM_GetComponentType; JVM_GetComponentType;
...@@ -163,6 +163,7 @@ SUNWprivate_1.1 { ...@@ -163,6 +163,7 @@ SUNWprivate_1.1 {
JVM_GetStackTraceElement; JVM_GetStackTraceElement;
JVM_GetSystemPackage; JVM_GetSystemPackage;
JVM_GetSystemPackages; JVM_GetSystemPackages;
JVM_GetTemporaryDirectory;
JVM_GetThreadStateNames; JVM_GetThreadStateNames;
JVM_GetThreadStateValues; JVM_GetThreadStateValues;
JVM_GetVersionInfo; JVM_GetVersionInfo;
......
...@@ -163,6 +163,7 @@ SUNWprivate_1.1 { ...@@ -163,6 +163,7 @@ SUNWprivate_1.1 {
JVM_GetStackTraceElement; JVM_GetStackTraceElement;
JVM_GetSystemPackage; JVM_GetSystemPackage;
JVM_GetSystemPackages; JVM_GetSystemPackages;
JVM_GetTemporaryDirectory;
JVM_GetThreadStateNames; JVM_GetThreadStateNames;
JVM_GetThreadStateValues; JVM_GetThreadStateValues;
JVM_GetVersionInfo; JVM_GetVersionInfo;
......
...@@ -163,6 +163,7 @@ SUNWprivate_1.1 { ...@@ -163,6 +163,7 @@ SUNWprivate_1.1 {
JVM_GetStackTraceElement; JVM_GetStackTraceElement;
JVM_GetSystemPackage; JVM_GetSystemPackage;
JVM_GetSystemPackages; JVM_GetSystemPackages;
JVM_GetTemporaryDirectory;
JVM_GetThreadStateNames; JVM_GetThreadStateNames;
JVM_GetThreadStateValues; JVM_GetThreadStateValues;
JVM_GetVersionInfo; JVM_GetVersionInfo;
......
...@@ -392,6 +392,23 @@ JVM_ENTRY(jobject, JVM_InitProperties(JNIEnv *env, jobject properties)) ...@@ -392,6 +392,23 @@ JVM_ENTRY(jobject, JVM_InitProperties(JNIEnv *env, jobject properties))
JVM_END JVM_END
/*
* Return the temporary directory that the VM uses for the attach
* and perf data files.
*
* It is important that this directory is well-known and the
* same for all VM instances. It cannot be affected by configuration
* variables such as java.io.tmpdir.
*/
JVM_ENTRY(jstring, JVM_GetTemporaryDirectory(JNIEnv *env))
JVMWrapper("JVM_GetTemporaryDirectory");
HandleMark hm(THREAD);
const char* temp_dir = os::get_temp_directory();
Handle h = java_lang_String::create_from_platform_dependent_str(temp_dir, CHECK_NULL);
return (jstring) JNIHandles::make_local(env, h());
JVM_END
// java.lang.Runtime ///////////////////////////////////////////////////////////////////////// // java.lang.Runtime /////////////////////////////////////////////////////////////////////////
extern volatile jint vm_created; extern volatile jint vm_created;
......
...@@ -1485,6 +1485,9 @@ JVM_GetManagement(jint version); ...@@ -1485,6 +1485,9 @@ JVM_GetManagement(jint version);
JNIEXPORT jobject JNICALL JNIEXPORT jobject JNICALL
JVM_InitAgentProperties(JNIEnv *env, jobject agent_props); JVM_InitAgentProperties(JNIEnv *env, jobject agent_props);
JNIEXPORT jstring JNICALL
JVM_GetTemporaryDirectory(JNIEnv *env);
/* Generics reflection support. /* Generics reflection support.
* *
* Returns information about the given class's EnclosingMethod * Returns information about the given class's EnclosingMethod
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册