equal
deleted
inserted
replaced
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. |