< prev index next >

src/hotspot/share/prims/whitebox.cpp

Print this page

1816   return (jlong) MetaspaceGC::capacity_until_GC();
1817 WB_END
1818 
1819 // The function is only valid when CDS is available.
1820 WB_ENTRY(jlong, WB_MetaspaceSharedRegionAlignment(JNIEnv* env, jobject wb))
1821 #if INCLUDE_CDS
1822   return (jlong)MetaspaceShared::core_region_alignment();
1823 #else
1824   ShouldNotReachHere();
1825   return 0L;
1826 #endif
1827 WB_END
1828 
1829 WB_ENTRY(jboolean, WB_IsMonitorInflated(JNIEnv* env, jobject wb, jobject obj))
1830   oop obj_oop = JNIHandles::resolve(obj);
1831   return (jboolean) obj_oop->mark().has_monitor();
1832 WB_END
1833 
1834 WB_ENTRY(jboolean, WB_DeflateIdleMonitors(JNIEnv* env, jobject wb))
1835   log_info(monitorinflation)("WhiteBox initiated DeflateIdleMonitors");
1836   return ObjectSynchronizer::request_deflate_idle_monitors();
1837 WB_END
1838 
1839 WB_ENTRY(void, WB_ForceSafepoint(JNIEnv* env, jobject wb))
1840   VM_ForceSafepoint force_safepoint_op;
1841   VMThread::execute(&force_safepoint_op);
1842 WB_END
1843 
1844 WB_ENTRY(void, WB_ForceClassLoaderStatsSafepoint(JNIEnv* env, jobject wb))
1845   nullStream dev_null;
1846   ClassLoaderStatsVMOperation force_op(&dev_null);
1847   VMThread::execute(&force_op);
1848 WB_END
1849 
1850 WB_ENTRY(jlong, WB_GetConstantPool(JNIEnv* env, jobject wb, jclass klass))
1851   InstanceKlass* ik = InstanceKlass::cast(java_lang_Class::as_Klass(JNIHandles::resolve(klass)));
1852   return (jlong) ik->constants();
1853 WB_END
1854 
1855 WB_ENTRY(jint, WB_GetConstantPoolCacheIndexTag(JNIEnv* env, jobject wb))
1856   return ConstantPool::CPCACHE_INDEX_TAG;

1816   return (jlong) MetaspaceGC::capacity_until_GC();
1817 WB_END
1818 
1819 // The function is only valid when CDS is available.
1820 WB_ENTRY(jlong, WB_MetaspaceSharedRegionAlignment(JNIEnv* env, jobject wb))
1821 #if INCLUDE_CDS
1822   return (jlong)MetaspaceShared::core_region_alignment();
1823 #else
1824   ShouldNotReachHere();
1825   return 0L;
1826 #endif
1827 WB_END
1828 
1829 WB_ENTRY(jboolean, WB_IsMonitorInflated(JNIEnv* env, jobject wb, jobject obj))
1830   oop obj_oop = JNIHandles::resolve(obj);
1831   return (jboolean) obj_oop->mark().has_monitor();
1832 WB_END
1833 
1834 WB_ENTRY(jboolean, WB_DeflateIdleMonitors(JNIEnv* env, jobject wb))
1835   log_info(monitorinflation)("WhiteBox initiated DeflateIdleMonitors");
1836   return ObjectSynchronizer::request_deflate_idle_monitors_from_wb();
1837 WB_END
1838 
1839 WB_ENTRY(void, WB_ForceSafepoint(JNIEnv* env, jobject wb))
1840   VM_ForceSafepoint force_safepoint_op;
1841   VMThread::execute(&force_safepoint_op);
1842 WB_END
1843 
1844 WB_ENTRY(void, WB_ForceClassLoaderStatsSafepoint(JNIEnv* env, jobject wb))
1845   nullStream dev_null;
1846   ClassLoaderStatsVMOperation force_op(&dev_null);
1847   VMThread::execute(&force_op);
1848 WB_END
1849 
1850 WB_ENTRY(jlong, WB_GetConstantPool(JNIEnv* env, jobject wb, jclass klass))
1851   InstanceKlass* ik = InstanceKlass::cast(java_lang_Class::as_Klass(JNIHandles::resolve(klass)));
1852   return (jlong) ik->constants();
1853 WB_END
1854 
1855 WB_ENTRY(jint, WB_GetConstantPoolCacheIndexTag(JNIEnv* env, jobject wb))
1856   return ConstantPool::CPCACHE_INDEX_TAG;
< prev index next >