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/heapRegionSeq.inline.hpp" 66 #include "gc_implementation/parNew/parOopClosures.inline.hpp" 67 #include "gc_implementation/parallelScavenge/psPromotionManager.inline.hpp" 68 #include "gc_implementation/parallelScavenge/psScavenge.inline.hpp" 69 #include "oops/oop.pcgc.inline.hpp" 70 #endif 71 #ifdef COMPILER1 72 #include "c1/c1_Compiler.hpp" 73 #endif 74 75 #ifdef DTRACE_ENABLED 76 77 HS_DTRACE_PROBE_DECL4(hotspot, class__initialization__required, 78 char*, intptr_t, oop, intptr_t); 79 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__recursive, 80 char*, intptr_t, oop, intptr_t, int); 81 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__concurrent, 82 char*, intptr_t, oop, intptr_t, int); 83 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__erroneous, 84 char*, intptr_t, oop, intptr_t, int); 85 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__super__failed, 86 char*, intptr_t, oop, intptr_t, int); 87 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__clinit, 88 char*, intptr_t, oop, intptr_t, int); 89 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__error, 90 char*, intptr_t, oop, intptr_t, int); 91 HS_DTRACE_PROBE_DECL5(hotspot, class__initialization__end, 92 char*, intptr_t, oop, intptr_t, int); 93 |