8139385: [TESTBUG]: JVMCI test crashes in constantPoolHandle::constantPoolHandle
Reviewed-by: kvn, iignatyev
--- a/hotspot/src/share/vm/prims/whitebox.cpp Tue Nov 03 18:42:40 2015 +0300
+++ b/hotspot/src/share/vm/prims/whitebox.cpp Tue Nov 03 20:12:51 2015 +0300
@@ -1275,9 +1275,9 @@
VMThread::execute(&force_safepoint_op);
WB_END
-WB_ENTRY(long, WB_GetConstantPool(JNIEnv* env, jobject wb, jclass klass))
+WB_ENTRY(jlong, WB_GetConstantPool(JNIEnv* env, jobject wb, jclass klass))
instanceKlassHandle ikh(java_lang_Class::as_Klass(JNIHandles::resolve(klass)));
- return (long) ikh->constants();
+ return (jlong) ikh->constants();
WB_END
template <typename T>