src/share/vm/memory/universe.cpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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/_universe.cpp.incl"







































































  27 
  28 // Known objects
  29 klassOop Universe::_boolArrayKlassObj                 = NULL;
  30 klassOop Universe::_byteArrayKlassObj                 = NULL;
  31 klassOop Universe::_charArrayKlassObj                 = NULL;
  32 klassOop Universe::_intArrayKlassObj                  = NULL;
  33 klassOop Universe::_shortArrayKlassObj                = NULL;
  34 klassOop Universe::_longArrayKlassObj                 = NULL;
  35 klassOop Universe::_singleArrayKlassObj               = NULL;
  36 klassOop Universe::_doubleArrayKlassObj               = NULL;
  37 klassOop Universe::_typeArrayKlassObjs[T_VOID+1]      = { NULL /*, NULL...*/ };
  38 klassOop Universe::_objectArrayKlassObj               = NULL;
  39 klassOop Universe::_symbolKlassObj                    = NULL;
  40 klassOop Universe::_methodKlassObj                    = NULL;
  41 klassOop Universe::_constMethodKlassObj               = NULL;
  42 klassOop Universe::_methodDataKlassObj                = NULL;
  43 klassOop Universe::_klassKlassObj                     = NULL;
  44 klassOop Universe::_arrayKlassKlassObj                = NULL;
  45 klassOop Universe::_objArrayKlassKlassObj             = NULL;
  46 klassOop Universe::_typeArrayKlassKlassObj            = NULL;


   1 /*
   2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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 "classfile/classLoader.hpp"
  27 #include "classfile/javaClasses.hpp"
  28 #include "classfile/symbolTable.hpp"
  29 #include "classfile/systemDictionary.hpp"
  30 #include "classfile/vmSymbols.hpp"
  31 #include "code/codeCache.hpp"
  32 #include "code/dependencies.hpp"
  33 #include "gc_interface/collectedHeap.inline.hpp"
  34 #include "interpreter/interpreter.hpp"
  35 #include "memory/cardTableModRefBS.hpp"
  36 #include "memory/filemap.hpp"
  37 #include "memory/gcLocker.inline.hpp"
  38 #include "memory/genCollectedHeap.hpp"
  39 #include "memory/genRemSet.hpp"
  40 #include "memory/generation.hpp"
  41 #include "memory/oopFactory.hpp"
  42 #include "memory/permGen.hpp"
  43 #include "memory/space.hpp"
  44 #include "memory/universe.hpp"
  45 #include "memory/universe.inline.hpp"
  46 #include "oops/arrayKlassKlass.hpp"
  47 #include "oops/compiledICHolderKlass.hpp"
  48 #include "oops/constMethodKlass.hpp"
  49 #include "oops/constantPoolKlass.hpp"
  50 #include "oops/constantPoolOop.hpp"
  51 #include "oops/cpCacheKlass.hpp"
  52 #include "oops/cpCacheOop.hpp"
  53 #include "oops/instanceKlass.hpp"
  54 #include "oops/instanceKlassKlass.hpp"
  55 #include "oops/instanceRefKlass.hpp"
  56 #include "oops/klassKlass.hpp"
  57 #include "oops/klassOop.hpp"
  58 #include "oops/methodDataKlass.hpp"
  59 #include "oops/methodKlass.hpp"
  60 #include "oops/objArrayKlassKlass.hpp"
  61 #include "oops/oop.inline.hpp"
  62 #include "oops/symbolKlass.hpp"
  63 #include "oops/typeArrayKlass.hpp"
  64 #include "oops/typeArrayKlassKlass.hpp"
  65 #include "prims/jvmtiRedefineClassesTrace.hpp"
  66 #include "runtime/aprofiler.hpp"
  67 #include "runtime/arguments.hpp"
  68 #include "runtime/deoptimization.hpp"
  69 #include "runtime/fprofiler.hpp"
  70 #include "runtime/handles.inline.hpp"
  71 #include "runtime/java.hpp"
  72 #include "runtime/javaCalls.hpp"
  73 #include "runtime/sharedRuntime.hpp"
  74 #include "runtime/synchronizer.hpp"
  75 #include "runtime/timer.hpp"
  76 #include "runtime/vm_operations.hpp"
  77 #include "services/memoryService.hpp"
  78 #include "utilities/copy.hpp"
  79 #include "utilities/events.hpp"
  80 #include "utilities/hashtable.inline.hpp"
  81 #include "utilities/preserveException.hpp"
  82 #ifdef TARGET_OS_FAMILY_linux
  83 # include "thread_linux.inline.hpp"
  84 #endif
  85 #ifdef TARGET_OS_FAMILY_solaris
  86 # include "thread_solaris.inline.hpp"
  87 #endif
  88 #ifdef TARGET_OS_FAMILY_windows
  89 # include "thread_windows.inline.hpp"
  90 #endif
  91 #ifndef SERIALGC
  92 #include "gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp"
  93 #include "gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.hpp"
  94 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
  95 #include "gc_implementation/g1/g1CollectorPolicy.hpp"
  96 #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
  97 #endif
  98 
  99 // Known objects
 100 klassOop Universe::_boolArrayKlassObj                 = NULL;
 101 klassOop Universe::_byteArrayKlassObj                 = NULL;
 102 klassOop Universe::_charArrayKlassObj                 = NULL;
 103 klassOop Universe::_intArrayKlassObj                  = NULL;
 104 klassOop Universe::_shortArrayKlassObj                = NULL;
 105 klassOop Universe::_longArrayKlassObj                 = NULL;
 106 klassOop Universe::_singleArrayKlassObj               = NULL;
 107 klassOop Universe::_doubleArrayKlassObj               = NULL;
 108 klassOop Universe::_typeArrayKlassObjs[T_VOID+1]      = { NULL /*, NULL...*/ };
 109 klassOop Universe::_objectArrayKlassObj               = NULL;
 110 klassOop Universe::_symbolKlassObj                    = NULL;
 111 klassOop Universe::_methodKlassObj                    = NULL;
 112 klassOop Universe::_constMethodKlassObj               = NULL;
 113 klassOop Universe::_methodDataKlassObj                = NULL;
 114 klassOop Universe::_klassKlassObj                     = NULL;
 115 klassOop Universe::_arrayKlassKlassObj                = NULL;
 116 klassOop Universe::_objArrayKlassKlassObj             = NULL;
 117 klassOop Universe::_typeArrayKlassKlassObj            = NULL;