8139385: [TESTBUG]: JVMCI test crashes in constantPoolHandle::constantPoolHandle
authorkshefov
Tue, 03 Nov 2015 20:12:51 +0300
changeset 33631 3eee32561662
parent 33630 041b89e031c1
child 33632 038347770a9e
8139385: [TESTBUG]: JVMCI test crashes in constantPoolHandle::constantPoolHandle Reviewed-by: kvn, iignatyev
hotspot/src/share/vm/prims/whitebox.cpp
--- 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>