src/share/vm/oops/instanceKlass.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/_instanceKlass.cpp.incl"
















































  27 
  28 #ifdef DTRACE_ENABLED
  29 
  30 HS_DTRACE_PROBE_DECL4(hotspot, class__initialization__required,
  31   char*, intptr_t, oop, intptr_t);
  32 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__recursive,
  33   char*, intptr_t, oop, intptr_t, int);
  34 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__concurrent,
  35   char*, intptr_t, oop, intptr_t, int);
  36 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__erroneous,
  37   char*, intptr_t, oop, intptr_t, int);
  38 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__super__failed,
  39   char*, intptr_t, oop, intptr_t, int);
  40 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__clinit,
  41   char*, intptr_t, oop, intptr_t, int);
  42 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__error,
  43   char*, intptr_t, oop, intptr_t, int);
  44 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__end,
  45   char*, intptr_t, oop, intptr_t, int);
  46 




   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/javaClasses.hpp"
  27 #include "classfile/systemDictionary.hpp"
  28 #include "classfile/verifier.hpp"
  29 #include "classfile/vmSymbols.hpp"
  30 #include "compiler/compileBroker.hpp"
  31 #include "gc_implementation/shared/markSweep.inline.hpp"
  32 #include "gc_interface/collectedHeap.inline.hpp"
  33 #include "interpreter/oopMapCache.hpp"
  34 #include "interpreter/rewriter.hpp"
  35 #include "jvmtifiles/jvmti.h"
  36 #include "memory/genOopClosures.inline.hpp"
  37 #include "memory/oopFactory.hpp"
  38 #include "memory/permGen.hpp"
  39 #include "oops/instanceKlass.hpp"
  40 #include "oops/instanceOop.hpp"
  41 #include "oops/methodOop.hpp"
  42 #include "oops/objArrayKlassKlass.hpp"
  43 #include "oops/oop.inline.hpp"
  44 #include "oops/symbolOop.hpp"
  45 #include "prims/jvmtiExport.hpp"
  46 #include "prims/jvmtiRedefineClassesTrace.hpp"
  47 #include "runtime/fieldDescriptor.hpp"
  48 #include "runtime/handles.inline.hpp"
  49 #include "runtime/javaCalls.hpp"
  50 #include "runtime/mutexLocker.hpp"
  51 #include "services/threadService.hpp"
  52 #include "utilities/dtrace.hpp"
  53 #ifdef TARGET_OS_FAMILY_linux
  54 # include "thread_linux.inline.hpp"
  55 #endif
  56 #ifdef TARGET_OS_FAMILY_solaris
  57 # include "thread_solaris.inline.hpp"
  58 #endif
  59 #ifdef TARGET_OS_FAMILY_windows
  60 # include "thread_windows.inline.hpp"
  61 #endif
  62 #ifndef SERIALGC
  63 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
  64 #include "gc_implementation/g1/g1OopClosures.inline.hpp"
  65 #include "gc_implementation/g1/g1RemSet.inline.hpp"
  66 #include "gc_implementation/g1/heapRegionSeq.inline.hpp"
  67 #include "gc_implementation/parNew/parOopClosures.inline.hpp"
  68 #include "gc_implementation/parallelScavenge/psPromotionManager.inline.hpp"
  69 #include "gc_implementation/parallelScavenge/psScavenge.inline.hpp"
  70 #include "oops/oop.pcgc.inline.hpp"
  71 #endif
  72 #ifdef COMPILER1
  73 #include "c1/c1_Compiler.hpp"
  74 #endif
  75 
  76 #ifdef DTRACE_ENABLED
  77 
  78 HS_DTRACE_PROBE_DECL4(hotspot, class__initialization__required,
  79   char*, intptr_t, oop, intptr_t);
  80 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__recursive,
  81   char*, intptr_t, oop, intptr_t, int);
  82 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__concurrent,
  83   char*, intptr_t, oop, intptr_t, int);
  84 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__erroneous,
  85   char*, intptr_t, oop, intptr_t, int);
  86 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__super__failed,
  87   char*, intptr_t, oop, intptr_t, int);
  88 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__clinit,
  89   char*, intptr_t, oop, intptr_t, int);
  90 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__error,
  91   char*, intptr_t, oop, intptr_t, int);
  92 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__end,
  93   char*, intptr_t, oop, intptr_t, int);
  94