hotspot/src/share/vm/oops/constantPool.hpp
changeset 44524 b0d3e8ba6f27
parent 38719 133bf85c3f36
child 46388 d7a164ad6b7f
--- a/hotspot/src/share/vm/oops/constantPool.hpp	Fri Apr 07 10:51:28 2017 +0000
+++ b/hotspot/src/share/vm/oops/constantPool.hpp	Fri Apr 07 13:42:00 2017 +0100
@@ -705,7 +705,9 @@
   }
 
   // Sizing (in words)
-  static int header_size()             { return sizeof(ConstantPool)/wordSize; }
+  static int header_size()             {
+    return align_size_up(sizeof(ConstantPool), wordSize) / wordSize;
+  }
   static int size(int length)          { return align_metadata_size(header_size() + length); }
   int size() const                     { return size(length()); }
 #if INCLUDE_SERVICES