8150426: Wrong cast in metadata_at_put
Summary: Fix cast.
Reviewed-by: dholmes, coleenp, jprovino
Contributed-by: timo.kinnunen@gmail.com
--- a/hotspot/src/share/vm/oops/typeArrayOop.hpp Wed Feb 24 13:18:54 2016 -0500
+++ b/hotspot/src/share/vm/oops/typeArrayOop.hpp Tue Feb 23 18:58:36 2016 -0500
@@ -129,7 +129,7 @@
Metadata* metadata_at(int which) const {
return (Metadata*)*long_at_addr(which); }
void metadata_at_put(int which, Metadata* contents) {
- *long_at_addr(which) = (long)contents;
+ *long_at_addr(which) = (jlong)contents;
}
#else
Metadata* metadata_at(int which) const {