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 "cds/filemap.hpp"
26 #include "classfile/classLoaderDataGraph.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "classfile/javaThreadStatus.hpp"
29 #include "classfile/vmClasses.hpp"
30 #include "classfile/vmSymbols.hpp"
31 #include "code/codeBlob.hpp"
32 #include "code/codeCache.hpp"
33 #include "code/compiledIC.hpp"
34 #include "code/compressedStream.hpp"
35 #include "code/location.hpp"
36 #include "code/nmethod.hpp"
37 #include "code/pcDesc.hpp"
38 #include "code/stubs.hpp"
39 #include "code/vmreg.hpp"
40 #include "compiler/compileBroker.hpp"
41 #include "compiler/oopMap.hpp"
42 #include "gc/shared/stringdedup/stringDedupThread.hpp"
43 #include "gc/shared/vmStructs_gc.hpp"
44 #include "interpreter/bytecodes.hpp"
45 #include "interpreter/interpreter.hpp"
46 #include "jfr/recorder/service/jfrRecorderThread.hpp"
47 #include "logging/logAsyncWriter.hpp"
48 #include "memory/allocation.inline.hpp"
49 #include "memory/heap.hpp"
50 #include "memory/padded.hpp"
537 nonstatic_field(nmethod, _method, Method*) \
538 nonstatic_field(nmethod, _entry_bci, int) \
539 nonstatic_field(nmethod, _osr_link, nmethod*) \
540 nonstatic_field(nmethod, _state, volatile signed char) \
541 nonstatic_field(nmethod, _exception_offset, int) \
542 nonstatic_field(nmethod, _deopt_handler_entry_offset, int) \
543 nonstatic_field(nmethod, _orig_pc_offset, int) \
544 nonstatic_field(nmethod, _stub_offset, int) \
545 nonstatic_field(nmethod, _immutable_data_ref_count_offset, int) \
546 nonstatic_field(nmethod, _scopes_pcs_offset, int) \
547 nonstatic_field(nmethod, _scopes_data_offset, int) \
548 nonstatic_field(nmethod, _handler_table_offset, u2) \
549 nonstatic_field(nmethod, _nul_chk_table_offset, u2) \
550 nonstatic_field(nmethod, _entry_offset, u2) \
551 nonstatic_field(nmethod, _verified_entry_offset, u2) \
552 nonstatic_field(nmethod, _osr_entry_point, address) \
553 nonstatic_field(nmethod, _immutable_data, address) \
554 nonstatic_field(nmethod, _immutable_data_size, int) \
555 nonstatic_field(nmethod, _compile_id, int) \
556 nonstatic_field(nmethod, _comp_level, CompLevel) \
557 volatile_nonstatic_field(nmethod, _exception_cache, ExceptionCache*) \
558 \
559 nonstatic_field(Deoptimization::UnrollBlock, _size_of_deoptimized_frame, int) \
560 nonstatic_field(Deoptimization::UnrollBlock, _caller_adjustment, int) \
561 nonstatic_field(Deoptimization::UnrollBlock, _number_of_frames, int) \
562 nonstatic_field(Deoptimization::UnrollBlock, _total_frame_sizes, int) \
563 nonstatic_field(Deoptimization::UnrollBlock, _unpack_kind, int) \
564 nonstatic_field(Deoptimization::UnrollBlock, _frame_sizes, intptr_t*) \
565 nonstatic_field(Deoptimization::UnrollBlock, _frame_pcs, address*) \
566 nonstatic_field(Deoptimization::UnrollBlock, _register_block, intptr_t*) \
567 nonstatic_field(Deoptimization::UnrollBlock, _return_type, BasicType) \
568 nonstatic_field(Deoptimization::UnrollBlock, _initial_info, intptr_t) \
569 nonstatic_field(Deoptimization::UnrollBlock, _caller_actual_parameters, int) \
570 \
571 /********************************/ \
572 /* JavaCalls (NOTE: incomplete) */ \
573 /********************************/ \
574 \
575 nonstatic_field(JavaCallWrapper, _anchor, JavaFrameAnchor) \
576 /********************************/ \
577 /* JavaFrameAnchor (NOTE: incomplete) */ \
578 /********************************/ \
1097 declare_type(nmethod, CodeBlob) \
1098 declare_type(RuntimeStub, RuntimeBlob) \
1099 declare_type(SingletonBlob, RuntimeBlob) \
1100 declare_type(UpcallStub, RuntimeBlob) \
1101 declare_type(SafepointBlob, SingletonBlob) \
1102 declare_type(DeoptimizationBlob, SingletonBlob) \
1103 COMPILER2_PRESENT(declare_type(ExceptionBlob, SingletonBlob)) \
1104 COMPILER2_PRESENT(declare_type(UncommonTrapBlob, RuntimeBlob)) \
1105 \
1106 /***************************************/ \
1107 /* PcDesc and other compiled code info */ \
1108 /***************************************/ \
1109 \
1110 declare_toplevel_type(PcDesc) \
1111 declare_toplevel_type(ExceptionCache) \
1112 declare_toplevel_type(PcDescCache) \
1113 declare_toplevel_type(Dependencies) \
1114 declare_toplevel_type(CompileTask) \
1115 declare_toplevel_type(Deoptimization) \
1116 declare_toplevel_type(Deoptimization::UnrollBlock) \
1117 \
1118 /************************/ \
1119 /* ImmutableOopMap */ \
1120 /************************/ \
1121 \
1122 declare_toplevel_type(ImmutableOopMapSet) \
1123 declare_toplevel_type(ImmutableOopMapPair) \
1124 declare_toplevel_type(ImmutableOopMap) \
1125 \
1126 /********************/ \
1127 /* CompressedStream */ \
1128 /********************/ \
1129 \
1130 declare_toplevel_type(CompressedStream) \
1131 \
1132 /**************/ \
1133 /* VMRegImpl */ \
1134 /**************/ \
1135 \
1136 declare_toplevel_type(VMRegImpl) \
|
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 "cds/filemap.hpp"
26 #include "classfile/classLoaderDataGraph.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "classfile/javaThreadStatus.hpp"
29 #include "classfile/vmClasses.hpp"
30 #include "classfile/vmSymbols.hpp"
31 #include "code/aotCodeCache.hpp"
32 #include "code/codeBlob.hpp"
33 #include "code/codeCache.hpp"
34 #include "code/compiledIC.hpp"
35 #include "code/compressedStream.hpp"
36 #include "code/location.hpp"
37 #include "code/nmethod.hpp"
38 #include "code/pcDesc.hpp"
39 #include "code/stubs.hpp"
40 #include "code/vmreg.hpp"
41 #include "compiler/compileBroker.hpp"
42 #include "compiler/oopMap.hpp"
43 #include "gc/shared/stringdedup/stringDedupThread.hpp"
44 #include "gc/shared/vmStructs_gc.hpp"
45 #include "interpreter/bytecodes.hpp"
46 #include "interpreter/interpreter.hpp"
47 #include "jfr/recorder/service/jfrRecorderThread.hpp"
48 #include "logging/logAsyncWriter.hpp"
49 #include "memory/allocation.inline.hpp"
50 #include "memory/heap.hpp"
51 #include "memory/padded.hpp"
538 nonstatic_field(nmethod, _method, Method*) \
539 nonstatic_field(nmethod, _entry_bci, int) \
540 nonstatic_field(nmethod, _osr_link, nmethod*) \
541 nonstatic_field(nmethod, _state, volatile signed char) \
542 nonstatic_field(nmethod, _exception_offset, int) \
543 nonstatic_field(nmethod, _deopt_handler_entry_offset, int) \
544 nonstatic_field(nmethod, _orig_pc_offset, int) \
545 nonstatic_field(nmethod, _stub_offset, int) \
546 nonstatic_field(nmethod, _immutable_data_ref_count_offset, int) \
547 nonstatic_field(nmethod, _scopes_pcs_offset, int) \
548 nonstatic_field(nmethod, _scopes_data_offset, int) \
549 nonstatic_field(nmethod, _handler_table_offset, u2) \
550 nonstatic_field(nmethod, _nul_chk_table_offset, u2) \
551 nonstatic_field(nmethod, _entry_offset, u2) \
552 nonstatic_field(nmethod, _verified_entry_offset, u2) \
553 nonstatic_field(nmethod, _osr_entry_point, address) \
554 nonstatic_field(nmethod, _immutable_data, address) \
555 nonstatic_field(nmethod, _immutable_data_size, int) \
556 nonstatic_field(nmethod, _compile_id, int) \
557 nonstatic_field(nmethod, _comp_level, CompLevel) \
558 nonstatic_field(nmethod, _aot_code_entry, AOTCodeEntry*) \
559 volatile_nonstatic_field(nmethod, _exception_cache, ExceptionCache*) \
560 \
561 nonstatic_field(AOTCodeEntry, _for_preload, bool) \
562 \
563 nonstatic_field(Deoptimization::UnrollBlock, _size_of_deoptimized_frame, int) \
564 nonstatic_field(Deoptimization::UnrollBlock, _caller_adjustment, int) \
565 nonstatic_field(Deoptimization::UnrollBlock, _number_of_frames, int) \
566 nonstatic_field(Deoptimization::UnrollBlock, _total_frame_sizes, int) \
567 nonstatic_field(Deoptimization::UnrollBlock, _unpack_kind, int) \
568 nonstatic_field(Deoptimization::UnrollBlock, _frame_sizes, intptr_t*) \
569 nonstatic_field(Deoptimization::UnrollBlock, _frame_pcs, address*) \
570 nonstatic_field(Deoptimization::UnrollBlock, _register_block, intptr_t*) \
571 nonstatic_field(Deoptimization::UnrollBlock, _return_type, BasicType) \
572 nonstatic_field(Deoptimization::UnrollBlock, _initial_info, intptr_t) \
573 nonstatic_field(Deoptimization::UnrollBlock, _caller_actual_parameters, int) \
574 \
575 /********************************/ \
576 /* JavaCalls (NOTE: incomplete) */ \
577 /********************************/ \
578 \
579 nonstatic_field(JavaCallWrapper, _anchor, JavaFrameAnchor) \
580 /********************************/ \
581 /* JavaFrameAnchor (NOTE: incomplete) */ \
582 /********************************/ \
1101 declare_type(nmethod, CodeBlob) \
1102 declare_type(RuntimeStub, RuntimeBlob) \
1103 declare_type(SingletonBlob, RuntimeBlob) \
1104 declare_type(UpcallStub, RuntimeBlob) \
1105 declare_type(SafepointBlob, SingletonBlob) \
1106 declare_type(DeoptimizationBlob, SingletonBlob) \
1107 COMPILER2_PRESENT(declare_type(ExceptionBlob, SingletonBlob)) \
1108 COMPILER2_PRESENT(declare_type(UncommonTrapBlob, RuntimeBlob)) \
1109 \
1110 /***************************************/ \
1111 /* PcDesc and other compiled code info */ \
1112 /***************************************/ \
1113 \
1114 declare_toplevel_type(PcDesc) \
1115 declare_toplevel_type(ExceptionCache) \
1116 declare_toplevel_type(PcDescCache) \
1117 declare_toplevel_type(Dependencies) \
1118 declare_toplevel_type(CompileTask) \
1119 declare_toplevel_type(Deoptimization) \
1120 declare_toplevel_type(Deoptimization::UnrollBlock) \
1121 declare_toplevel_type(AOTCodeEntry) \
1122 \
1123 /************************/ \
1124 /* ImmutableOopMap */ \
1125 /************************/ \
1126 \
1127 declare_toplevel_type(ImmutableOopMapSet) \
1128 declare_toplevel_type(ImmutableOopMapPair) \
1129 declare_toplevel_type(ImmutableOopMap) \
1130 \
1131 /********************/ \
1132 /* CompressedStream */ \
1133 /********************/ \
1134 \
1135 declare_toplevel_type(CompressedStream) \
1136 \
1137 /**************/ \
1138 /* VMRegImpl */ \
1139 /**************/ \
1140 \
1141 declare_toplevel_type(VMRegImpl) \
|