1 /*
2 * Copyright (c) 1997, 2022, 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 *
70 void jdk_internal_vm_Continuation::compute_offsets() {
71 InstanceKlass* k = vmClasses::Continuation_klass();
72 CONTINUATION_FIELDS_DO(FIELD_COMPUTE_OFFSET);
73 }
74
75 #if INCLUDE_CDS
76 void jdk_internal_vm_Continuation::serialize_offsets(SerializeClosure* f) {
77 CONTINUATION_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
78 }
79 #endif
80
81 // Support for jdk.internal.vm.StackChunk
82
83 int jdk_internal_vm_StackChunk::_parent_offset;
84 int jdk_internal_vm_StackChunk::_size_offset;
85 int jdk_internal_vm_StackChunk::_sp_offset;
86 int jdk_internal_vm_StackChunk::_pc_offset;
87 int jdk_internal_vm_StackChunk::_bottom_offset;
88 int jdk_internal_vm_StackChunk::_flags_offset;
89 int jdk_internal_vm_StackChunk::_maxThawingSize_offset;
90 int jdk_internal_vm_StackChunk::_cont_offset;
91
92 #define STACKCHUNK_FIELDS_DO(macro) \
93 macro(_parent_offset, k, vmSymbols::parent_name(), stackchunk_signature, false); \
94 macro(_size_offset, k, vmSymbols::size_name(), int_signature, false); \
95 macro(_sp_offset, k, vmSymbols::sp_name(), int_signature, false); \
96 macro(_bottom_offset, k, vmSymbols::bottom_name(), int_signature, false);
97
98 void jdk_internal_vm_StackChunk::compute_offsets() {
99 InstanceKlass* k = vmClasses::StackChunk_klass();
100 STACKCHUNK_FIELDS_DO(FIELD_COMPUTE_OFFSET);
101 STACKCHUNK_INJECTED_FIELDS(INJECTED_FIELD_COMPUTE_OFFSET);
102 }
103
104 #if INCLUDE_CDS
105 void jdk_internal_vm_StackChunk::serialize_offsets(SerializeClosure* f) {
106 STACKCHUNK_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
107 STACKCHUNK_INJECTED_FIELDS(INJECTED_FIELD_SERIALIZE_OFFSET);
108 }
109 #endif
|
1 /*
2 * Copyright (c) 1997, 2024, 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 *
70 void jdk_internal_vm_Continuation::compute_offsets() {
71 InstanceKlass* k = vmClasses::Continuation_klass();
72 CONTINUATION_FIELDS_DO(FIELD_COMPUTE_OFFSET);
73 }
74
75 #if INCLUDE_CDS
76 void jdk_internal_vm_Continuation::serialize_offsets(SerializeClosure* f) {
77 CONTINUATION_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
78 }
79 #endif
80
81 // Support for jdk.internal.vm.StackChunk
82
83 int jdk_internal_vm_StackChunk::_parent_offset;
84 int jdk_internal_vm_StackChunk::_size_offset;
85 int jdk_internal_vm_StackChunk::_sp_offset;
86 int jdk_internal_vm_StackChunk::_pc_offset;
87 int jdk_internal_vm_StackChunk::_bottom_offset;
88 int jdk_internal_vm_StackChunk::_flags_offset;
89 int jdk_internal_vm_StackChunk::_maxThawingSize_offset;
90 int jdk_internal_vm_StackChunk::_lockStackSize_offset;
91 int jdk_internal_vm_StackChunk::_objectWaiter_offset;
92 int jdk_internal_vm_StackChunk::_cont_offset;
93
94 #define STACKCHUNK_FIELDS_DO(macro) \
95 macro(_parent_offset, k, vmSymbols::parent_name(), stackchunk_signature, false); \
96 macro(_size_offset, k, vmSymbols::size_name(), int_signature, false); \
97 macro(_sp_offset, k, vmSymbols::sp_name(), int_signature, false); \
98 macro(_bottom_offset, k, vmSymbols::bottom_name(), int_signature, false);
99
100 void jdk_internal_vm_StackChunk::compute_offsets() {
101 InstanceKlass* k = vmClasses::StackChunk_klass();
102 STACKCHUNK_FIELDS_DO(FIELD_COMPUTE_OFFSET);
103 STACKCHUNK_INJECTED_FIELDS(INJECTED_FIELD_COMPUTE_OFFSET);
104 }
105
106 #if INCLUDE_CDS
107 void jdk_internal_vm_StackChunk::serialize_offsets(SerializeClosure* f) {
108 STACKCHUNK_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
109 STACKCHUNK_INJECTED_FIELDS(INJECTED_FIELD_SERIALIZE_OFFSET);
110 }
111 #endif
|