hotspot/src/share/vm/oops/methodCounters.hpp
changeset 44524 b0d3e8ba6f27
parent 42650 1f304d0c888b
child 44630 54aa492f2b19
--- a/hotspot/src/share/vm/oops/methodCounters.hpp	Fri Apr 07 10:51:28 2017 +0000
+++ b/hotspot/src/share/vm/oops/methodCounters.hpp	Fri Apr 07 13:42:00 2017 +0100
@@ -116,7 +116,9 @@
 
   AOT_ONLY(Method* method() const { return _method; })
 
-  static int size() { return sizeof(MethodCounters) / wordSize; }
+  static int size() {
+    return align_size_up(sizeof(MethodCounters), wordSize) / wordSize;
+  }
 
   bool is_klass() const { return false; }