< prev index next >

hotspot/src/share/vm/prims/whitebox.cpp

Print this page

        

*** 1285,1295 **** VMThread::execute(&force_safepoint_op); WB_END WB_ENTRY(jlong, WB_GetConstantPool(JNIEnv* env, jobject wb, jclass klass)) instanceKlassHandle ikh(java_lang_Class::as_Klass(JNIHandles::resolve(klass))); ! return (jlong) ikh->constants(); WB_END template <typename T> static bool GetMethodOption(JavaThread* thread, JNIEnv* env, jobject method, jstring name, T* value) { assert(value != NULL, "sanity"); --- 1285,1295 ---- VMThread::execute(&force_safepoint_op); WB_END WB_ENTRY(jlong, WB_GetConstantPool(JNIEnv* env, jobject wb, jclass klass)) instanceKlassHandle ikh(java_lang_Class::as_Klass(JNIHandles::resolve(klass))); ! return (jlong)(uintptr_t)ikh->constants(); WB_END template <typename T> static bool GetMethodOption(JavaThread* thread, JNIEnv* env, jobject method, jstring name, T* value) { assert(value != NULL, "sanity");
< prev index next >