< prev index next >

src/hotspot/share/prims/whitebox.cpp

Print this page
rev 51053 : 8207830: [aix] disable jfr in build and tests


1768 
1769 WB_ENTRY(jboolean, WB_IsCDSIncludedInVmBuild(JNIEnv* env))
1770 #if INCLUDE_CDS
1771 # ifdef _LP64
1772     if (!UseCompressedOops || !UseCompressedClassPointers) {
1773       // On 64-bit VMs, CDS is supported only with compressed oops/pointers
1774       return false;
1775     }
1776 # endif // _LP64
1777   return true;
1778 #else
1779   return false;
1780 #endif // INCLUDE_CDS
1781 WB_END
1782 
1783 WB_ENTRY(jboolean, WB_IsJavaHeapArchiveSupported(JNIEnv* env))
1784   return MetaspaceShared::is_heap_object_archiving_allowed();
1785 WB_END
1786 
1787 








1788 #if INCLUDE_CDS
1789 
1790 WB_ENTRY(jint, WB_GetOffsetForName(JNIEnv* env, jobject o, jstring name))
1791   ResourceMark rm;
1792   char* c_name = java_lang_String::as_utf8_string(JNIHandles::resolve_non_null(name));
1793   int result = CDSOffsets::find_offset(c_name);
1794   return (jint)result;
1795 WB_END
1796 
1797 #endif // INCLUDE_CDS
1798 
1799 WB_ENTRY(jint, WB_HandshakeWalkStack(JNIEnv* env, jobject wb, jobject thread_handle, jboolean all_threads))
1800   class TraceSelfClosure : public ThreadClosure {
1801     jint _num_threads_completed;
1802 
1803     void do_thread(Thread* th) {
1804       assert(th->is_Java_thread(), "sanity");
1805       JavaThread* jt = (JavaThread*)th;
1806       ResourceMark rm;
1807 


2146       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Boolean;",
2147                                                       (void*)&WB_GetMethodBooleaneOption},
2148   {CC"getMethodIntxOption",
2149       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Long;",
2150                                                       (void*)&WB_GetMethodIntxOption},
2151   {CC"getMethodUintxOption",
2152       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Long;",
2153                                                       (void*)&WB_GetMethodUintxOption},
2154   {CC"getMethodDoubleOption",
2155       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Double;",
2156                                                       (void*)&WB_GetMethodDoubleOption},
2157   {CC"getMethodStringOption",
2158       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/String;",
2159                                                       (void*)&WB_GetMethodStringOption},
2160   {CC"isShared",           CC"(Ljava/lang/Object;)Z", (void*)&WB_IsShared },
2161   {CC"isSharedClass",      CC"(Ljava/lang/Class;)Z",  (void*)&WB_IsSharedClass },
2162   {CC"areSharedStringsIgnored",           CC"()Z",    (void*)&WB_AreSharedStringsIgnored },
2163   {CC"getResolvedReferences", CC"(Ljava/lang/Class;)Ljava/lang/Object;", (void*)&WB_GetResolvedReferences},
2164   {CC"areOpenArchiveHeapObjectsMapped",   CC"()Z",    (void*)&WB_AreOpenArchiveHeapObjectsMapped},
2165   {CC"isCDSIncludedInVmBuild",            CC"()Z",    (void*)&WB_IsCDSIncludedInVmBuild },

2166   {CC"isJavaHeapArchiveSupported",      CC"()Z",      (void*)&WB_IsJavaHeapArchiveSupported },
2167 
2168   {CC"clearInlineCaches0",  CC"(Z)V",                 (void*)&WB_ClearInlineCaches },
2169   {CC"handshakeWalkStack", CC"(Ljava/lang/Thread;Z)I", (void*)&WB_HandshakeWalkStack },
2170   {CC"addCompilerDirective",    CC"(Ljava/lang/String;)I",
2171                                                       (void*)&WB_AddCompilerDirective },
2172   {CC"removeCompilerDirective",   CC"(I)V",           (void*)&WB_RemoveCompilerDirective },
2173   {CC"isGCSupported",             CC"(I)Z",           (void*)&WB_IsGCSupported},
2174   {CC"isGCSelected",              CC"(I)Z",           (void*)&WB_IsGCSelected},
2175   {CC"isGCSelectedErgonomically", CC"()Z",            (void*)&WB_IsGCSelectedErgonomically},
2176   {CC"supportsConcurrentGCPhaseControl", CC"()Z",     (void*)&WB_SupportsConcurrentGCPhaseControl},
2177   {CC"getConcurrentGCPhases",     CC"()[Ljava/lang/String;",
2178                                                       (void*)&WB_GetConcurrentGCPhases},
2179   {CC"requestConcurrentGCPhase0", CC"(Ljava/lang/String;)Z",
2180                                                       (void*)&WB_RequestConcurrentGCPhase},
2181   {CC"checkLibSpecifiesNoexecstack", CC"(Ljava/lang/String;)Z",
2182                                                       (void*)&WB_CheckLibSpecifiesNoexecstack},
2183   {CC"isContainerized",           CC"()Z",            (void*)&WB_IsContainerized },
2184   {CC"printOsInfo",               CC"()V",            (void*)&WB_PrintOsInfo },
2185   {CC"disableElfSectionCache",    CC"()V",            (void*)&WB_DisableElfSectionCache },


1768 
1769 WB_ENTRY(jboolean, WB_IsCDSIncludedInVmBuild(JNIEnv* env))
1770 #if INCLUDE_CDS
1771 # ifdef _LP64
1772     if (!UseCompressedOops || !UseCompressedClassPointers) {
1773       // On 64-bit VMs, CDS is supported only with compressed oops/pointers
1774       return false;
1775     }
1776 # endif // _LP64
1777   return true;
1778 #else
1779   return false;
1780 #endif // INCLUDE_CDS
1781 WB_END
1782 
1783 WB_ENTRY(jboolean, WB_IsJavaHeapArchiveSupported(JNIEnv* env))
1784   return MetaspaceShared::is_heap_object_archiving_allowed();
1785 WB_END
1786 
1787 
1788 WB_ENTRY(jboolean, WB_IsJFRIncludedInVmBuild(JNIEnv* env))
1789 #if INCLUDE_JFR
1790   return true;
1791 #else
1792   return false;
1793 #endif // INCLUDE_JFR
1794 WB_END
1795 
1796 #if INCLUDE_CDS
1797 
1798 WB_ENTRY(jint, WB_GetOffsetForName(JNIEnv* env, jobject o, jstring name))
1799   ResourceMark rm;
1800   char* c_name = java_lang_String::as_utf8_string(JNIHandles::resolve_non_null(name));
1801   int result = CDSOffsets::find_offset(c_name);
1802   return (jint)result;
1803 WB_END
1804 
1805 #endif // INCLUDE_CDS
1806 
1807 WB_ENTRY(jint, WB_HandshakeWalkStack(JNIEnv* env, jobject wb, jobject thread_handle, jboolean all_threads))
1808   class TraceSelfClosure : public ThreadClosure {
1809     jint _num_threads_completed;
1810 
1811     void do_thread(Thread* th) {
1812       assert(th->is_Java_thread(), "sanity");
1813       JavaThread* jt = (JavaThread*)th;
1814       ResourceMark rm;
1815 


2154       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Boolean;",
2155                                                       (void*)&WB_GetMethodBooleaneOption},
2156   {CC"getMethodIntxOption",
2157       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Long;",
2158                                                       (void*)&WB_GetMethodIntxOption},
2159   {CC"getMethodUintxOption",
2160       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Long;",
2161                                                       (void*)&WB_GetMethodUintxOption},
2162   {CC"getMethodDoubleOption",
2163       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/Double;",
2164                                                       (void*)&WB_GetMethodDoubleOption},
2165   {CC"getMethodStringOption",
2166       CC"(Ljava/lang/reflect/Executable;Ljava/lang/String;)Ljava/lang/String;",
2167                                                       (void*)&WB_GetMethodStringOption},
2168   {CC"isShared",           CC"(Ljava/lang/Object;)Z", (void*)&WB_IsShared },
2169   {CC"isSharedClass",      CC"(Ljava/lang/Class;)Z",  (void*)&WB_IsSharedClass },
2170   {CC"areSharedStringsIgnored",           CC"()Z",    (void*)&WB_AreSharedStringsIgnored },
2171   {CC"getResolvedReferences", CC"(Ljava/lang/Class;)Ljava/lang/Object;", (void*)&WB_GetResolvedReferences},
2172   {CC"areOpenArchiveHeapObjectsMapped",   CC"()Z",    (void*)&WB_AreOpenArchiveHeapObjectsMapped},
2173   {CC"isCDSIncludedInVmBuild",            CC"()Z",    (void*)&WB_IsCDSIncludedInVmBuild },
2174   {CC"isJFRIncludedInVmBuild",            CC"()Z",    (void*)&WB_IsJFRIncludedInVmBuild },
2175   {CC"isJavaHeapArchiveSupported",      CC"()Z",      (void*)&WB_IsJavaHeapArchiveSupported },
2176 
2177   {CC"clearInlineCaches0",  CC"(Z)V",                 (void*)&WB_ClearInlineCaches },
2178   {CC"handshakeWalkStack", CC"(Ljava/lang/Thread;Z)I", (void*)&WB_HandshakeWalkStack },
2179   {CC"addCompilerDirective",    CC"(Ljava/lang/String;)I",
2180                                                       (void*)&WB_AddCompilerDirective },
2181   {CC"removeCompilerDirective",   CC"(I)V",           (void*)&WB_RemoveCompilerDirective },
2182   {CC"isGCSupported",             CC"(I)Z",           (void*)&WB_IsGCSupported},
2183   {CC"isGCSelected",              CC"(I)Z",           (void*)&WB_IsGCSelected},
2184   {CC"isGCSelectedErgonomically", CC"()Z",            (void*)&WB_IsGCSelectedErgonomically},
2185   {CC"supportsConcurrentGCPhaseControl", CC"()Z",     (void*)&WB_SupportsConcurrentGCPhaseControl},
2186   {CC"getConcurrentGCPhases",     CC"()[Ljava/lang/String;",
2187                                                       (void*)&WB_GetConcurrentGCPhases},
2188   {CC"requestConcurrentGCPhase0", CC"(Ljava/lang/String;)Z",
2189                                                       (void*)&WB_RequestConcurrentGCPhase},
2190   {CC"checkLibSpecifiesNoexecstack", CC"(Ljava/lang/String;)Z",
2191                                                       (void*)&WB_CheckLibSpecifiesNoexecstack},
2192   {CC"isContainerized",           CC"()Z",            (void*)&WB_IsContainerized },
2193   {CC"printOsInfo",               CC"()V",            (void*)&WB_PrintOsInfo },
2194   {CC"disableElfSectionCache",    CC"()V",            (void*)&WB_DisableElfSectionCache },
< prev index next >