src/share/vm/code/codeCache.cpp

Print this page




   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 # include "incls/_precompiled.incl"
  26 # include "incls/_codeCache.cpp.incl"


















  27 
  28 // Helper class for printing in CodeCache
  29 
  30 class CodeBlob_sizes {
  31  private:
  32   int count;
  33   int total_size;
  34   int header_size;
  35   int code_size;
  36   int stub_size;
  37   int relocation_size;
  38   int scopes_oop_size;
  39   int scopes_data_size;
  40   int scopes_pcs_size;
  41 
  42  public:
  43   CodeBlob_sizes() {
  44     count            = 0;
  45     total_size       = 0;
  46     header_size      = 0;




   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "code/codeBlob.hpp"
  27 #include "code/codeCache.hpp"
  28 #include "code/dependencies.hpp"
  29 #include "code/nmethod.hpp"
  30 #include "code/pcDesc.hpp"
  31 #include "gc_implementation/shared/markSweep.hpp"
  32 #include "memory/allocation.inline.hpp"
  33 #include "memory/gcLocker.hpp"
  34 #include "memory/iterator.hpp"
  35 #include "memory/resourceArea.hpp"
  36 #include "oops/methodOop.hpp"
  37 #include "oops/objArrayOop.hpp"
  38 #include "oops/oop.inline.hpp"
  39 #include "runtime/handles.inline.hpp"
  40 #include "runtime/icache.hpp"
  41 #include "runtime/java.hpp"
  42 #include "runtime/mutexLocker.hpp"
  43 #include "services/memoryService.hpp"
  44 #include "utilities/xmlstream.hpp"
  45 
  46 // Helper class for printing in CodeCache
  47 
  48 class CodeBlob_sizes {
  49  private:
  50   int count;
  51   int total_size;
  52   int header_size;
  53   int code_size;
  54   int stub_size;
  55   int relocation_size;
  56   int scopes_oop_size;
  57   int scopes_data_size;
  58   int scopes_pcs_size;
  59 
  60  public:
  61   CodeBlob_sizes() {
  62     count            = 0;
  63     total_size       = 0;
  64     header_size      = 0;