< prev index next >

src/share/vm/oops/methodData.cpp

Print this page

        

@@ -932,11 +932,11 @@
 // Compute the size of the MethodData* necessary to store
 // profiling information about a given method.  Size is in words
 int MethodData::compute_allocation_size_in_words(const methodHandle& method) {
   int byte_size = compute_allocation_size_in_bytes(method);
   int word_size = align_size_up(byte_size, BytesPerWord) / BytesPerWord;
-  return align_object_size(word_size);
+  return align_metadata_size(word_size);
 }
 
 // Initialize an individual data segment.  Returns the size of
 // the segment in bytes.
 int MethodData::initialize_data(BytecodeStream* stream,
< prev index next >