hotspot/src/share/vm/oops/methodData.cpp
changeset 46619 a3919f5e8d2b
parent 46542 73dd19b96b5d
child 46625 edefffab74e2
equal deleted inserted replaced
46618:d503911aa948 46619:a3919f5e8d2b
   935 
   935 
   936 // Compute the size of the MethodData* necessary to store
   936 // Compute the size of the MethodData* necessary to store
   937 // profiling information about a given method.  Size is in words
   937 // profiling information about a given method.  Size is in words
   938 int MethodData::compute_allocation_size_in_words(const methodHandle& method) {
   938 int MethodData::compute_allocation_size_in_words(const methodHandle& method) {
   939   int byte_size = compute_allocation_size_in_bytes(method);
   939   int byte_size = compute_allocation_size_in_bytes(method);
   940   int word_size = align_size_up(byte_size, BytesPerWord) / BytesPerWord;
   940   int word_size = align_up(byte_size, BytesPerWord) / BytesPerWord;
   941   return align_metadata_size(word_size);
   941   return align_metadata_size(word_size);
   942 }
   942 }
   943 
   943 
   944 // Initialize an individual data segment.  Returns the size of
   944 // Initialize an individual data segment.  Returns the size of
   945 // the segment in bytes.
   945 // the segment in bytes.