hotspot/src/share/vm/oops/methodData.cpp
changeset 35898 ddc274f0052f
parent 35492 c8c0273e6b91
child 37248 11a660dbbb8e
equal deleted inserted replaced
35897:beba2418d973 35898:ddc274f0052f
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   932 // Compute the size of the MethodData* necessary to store
   932 // Compute the size of the MethodData* necessary to store
   933 // profiling information about a given method.  Size is in words
   933 // profiling information about a given method.  Size is in words
   934 int MethodData::compute_allocation_size_in_words(const methodHandle& method) {
   934 int MethodData::compute_allocation_size_in_words(const methodHandle& method) {
   935   int byte_size = compute_allocation_size_in_bytes(method);
   935   int byte_size = compute_allocation_size_in_bytes(method);
   936   int word_size = align_size_up(byte_size, BytesPerWord) / BytesPerWord;
   936   int word_size = align_size_up(byte_size, BytesPerWord) / BytesPerWord;
   937   return align_object_size(word_size);
   937   return align_metadata_size(word_size);
   938 }
   938 }
   939 
   939 
   940 // Initialize an individual data segment.  Returns the size of
   940 // Initialize an individual data segment.  Returns the size of
   941 // the segment in bytes.
   941 // the segment in bytes.
   942 int MethodData::initialize_data(BytecodeStream* stream,
   942 int MethodData::initialize_data(BytecodeStream* stream,