changeset 9638:c3abbf1a6f38

8139385: [TESTBUG]: JVMCI test crashes in constantPoolHandle::constantPoolHandle Reviewed-by: kvn, iignatyev
author kshefov
date Tue, 03 Nov 2015 20:12:51 +0300
parents e677ebf4b028
children 40bd4478a362
files src/share/vm/prims/whitebox.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/whitebox.cpp	Tue Nov 03 18:42:40 2015 +0300
+++ b/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>