hotspot/src/share/vm/oops/cpCache.hpp
changeset 46388 d7a164ad6b7f
parent 46329 53ccc37bda19
parent 44524 b0d3e8ba6f27
child 46427 54713555867e
--- a/hotspot/src/share/vm/oops/cpCache.hpp	Tue Apr 18 13:19:42 2017 -0400
+++ b/hotspot/src/share/vm/oops/cpCache.hpp	Tue Apr 18 22:25:33 2017 +0200
@@ -359,7 +359,9 @@
                                                    return (TosState)((_flags >> tos_state_shift) & tos_state_mask); }
 
   // Code generation support
-  static WordSize size()                         { return in_WordSize(sizeof(ConstantPoolCacheEntry) / wordSize); }
+  static WordSize size()                         {
+    return in_WordSize(align_size_up(sizeof(ConstantPoolCacheEntry), wordSize) / wordSize);
+  }
   static ByteSize size_in_bytes()                { return in_ByteSize(sizeof(ConstantPoolCacheEntry)); }
   static ByteSize indices_offset()               { return byte_offset_of(ConstantPoolCacheEntry, _indices); }
   static ByteSize f1_offset()                    { return byte_offset_of(ConstantPoolCacheEntry, _f1); }