annotate src/os/bsd/dtrace/jhelper.d @ 21097:391f94d4d23f

Move MatchProcessor and HotSpotVMConfigPorcessor to their own projects
author Gilles Duboscq <gilles.m.duboscq@oracle.com>
date Thu, 23 Apr 2015 14:48:52 +0200
parents 8e47bac5643a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
1 /*
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
4 *
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
7 * published by the Free Software Foundation.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
8 *
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
13 * accompanied this code).
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
14 *
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
18 *
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
21 * questions.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
22 *
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
23 */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
24
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
25 /* This file is auto-generated */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
26 #include "JvmOffsetsIndex.h"
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
27
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
28 #define DEBUG
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
29
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
30 #ifdef DEBUG
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
31 #define MARK_LINE this->line = __LINE__
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
32 #else
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
33 #define MARK_LINE
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
34 #endif
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
35
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
36 #ifdef _LP64
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
37 #define STACK_BIAS 0x7ff
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
38 #define pointer uint64_t
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
39 #else
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
40 #define STACK_BIAS 0
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
41 #define pointer uint32_t
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
42 #endif
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
43
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
44 extern pointer __JvmOffsets;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
45
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
46 extern pointer __1cJCodeCacheF_heap_;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
47 extern pointer __1cIUniverseO_collectedHeap_;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
48
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
49 extern pointer __1cHnmethodG__vtbl_;
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
50 extern pointer __1cNMethodG__vtbl_;
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
51 extern pointer __1cKBufferBlobG__vtbl_;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
52
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
53 #define copyin_ptr(ADDR) *(pointer*) copyin((pointer) (ADDR), sizeof(pointer))
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
54 #define copyin_uchar(ADDR) *(uchar_t*) copyin((pointer) (ADDR), sizeof(uchar_t))
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
55 #define copyin_uint16(ADDR) *(uint16_t*) copyin((pointer) (ADDR), sizeof(uint16_t))
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
56 #define copyin_uint32(ADDR) *(uint32_t*) copyin((pointer) (ADDR), sizeof(uint32_t))
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
57 #define copyin_int32(ADDR) *(int32_t*) copyin((pointer) (ADDR), sizeof(int32_t))
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
58 #define copyin_uint8(ADDR) *(uint8_t*) copyin((pointer) (ADDR), sizeof(uint8_t))
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
59
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
60 #define SAME(x) x
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
61 #define copyin_offset(JVM_CONST) JVM_CONST = \
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
62 copyin_int32(JvmOffsetsPtr + SAME(IDX_)JVM_CONST * sizeof(int32_t))
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
63
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
64 int init_done;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
65
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
66 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
67 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
68 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
69 this->done = 0;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
70 /*
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
71 * TBD:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
72 * Here we initialize init_done, otherwise jhelper does not work.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
73 * Therefore, copyin_offset() statements work multiple times now.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
74 * There is a hope we could avoid it in the future, and so,
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
75 * this initialization can be removed.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
76 */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
77 init_done = 0;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
78 this->error = (char *) NULL;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
79 this->result = (char *) NULL;
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
80 this->isMethod = 0;
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
81 this->codecache = 0;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
82 this->klass = (pointer) NULL;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
83 this->vtbl = (pointer) NULL;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
84 this->suffix = '\0';
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
85 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
86
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
87 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
88 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
89 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
90 /* Initialization of JvmOffsets constants */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
91 JvmOffsetsPtr = (pointer) &``__JvmOffsets;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
92 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
93
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
94 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
95 /!init_done && !this->done/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
96 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
97 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
98 init_done = 1;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
99
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
100 copyin_offset(COMPILER);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
101 copyin_offset(OFFSET_CollectedHeap_reserved);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
102 copyin_offset(OFFSET_MemRegion_start);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
103 copyin_offset(OFFSET_MemRegion_word_size);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
104 copyin_offset(SIZE_HeapWord);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
105
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
106 copyin_offset(OFFSET_interpreter_frame_method);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
107 copyin_offset(OFFSET_Klass_name);
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
108 copyin_offset(OFFSET_ConstantPool_pool_holder);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
109
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
110 copyin_offset(OFFSET_HeapBlockHeader_used);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
111 copyin_offset(OFFSET_oopDesc_metadata);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
112
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
113 copyin_offset(OFFSET_Symbol_length);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
114 copyin_offset(OFFSET_Symbol_body);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
115
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
116 copyin_offset(OFFSET_Method_constMethod);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
117 copyin_offset(OFFSET_ConstMethod_constants);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
118 copyin_offset(OFFSET_ConstMethod_name_index);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
119 copyin_offset(OFFSET_ConstMethod_signature_index);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
120
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
121 copyin_offset(OFFSET_CodeHeap_memory);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
122 copyin_offset(OFFSET_CodeHeap_segmap);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
123 copyin_offset(OFFSET_CodeHeap_log2_segment_size);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
124
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
125 copyin_offset(OFFSET_VirtualSpace_low);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
126 copyin_offset(OFFSET_VirtualSpace_high);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
127
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
128 copyin_offset(OFFSET_CodeBlob_name);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
129
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
130 copyin_offset(OFFSET_nmethod_method);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
131 copyin_offset(SIZE_HeapBlockHeader);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
132 copyin_offset(SIZE_oopDesc);
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
133 copyin_offset(SIZE_ConstantPool);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
134
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6725
diff changeset
135 copyin_offset(OFFSET_NarrowPtrStruct_base);
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6725
diff changeset
136 copyin_offset(OFFSET_NarrowPtrStruct_shift);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
137
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
138 /*
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
139 * The PC to translate is in arg0.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
140 */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
141 this->pc = arg0;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
142
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
143 /*
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
144 * The methodPtr is in %l2 on SPARC. This can be found at
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
145 * offset 8 from the frame pointer on 32-bit processes.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
146 */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
147 #if defined(__sparc)
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
148 this->methodPtr = copyin_ptr(arg1 + 2 * sizeof(pointer) + STACK_BIAS);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
149 #elif defined(__i386) || defined(__amd64)
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
150 this->methodPtr = copyin_ptr(arg1 + OFFSET_interpreter_frame_method);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
151 #else
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
152 #error "Don't know architecture"
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
153 #endif
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
154
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
155 this->CodeCache_heap_address = copyin_ptr(&``__1cJCodeCacheF_heap_);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
156
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
157 /* Reading volatile values */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
158 this->CodeCache_low = copyin_ptr(this->CodeCache_heap_address +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
159 OFFSET_CodeHeap_memory + OFFSET_VirtualSpace_low);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
160
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
161 this->CodeCache_high = copyin_ptr(this->CodeCache_heap_address +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
162 OFFSET_CodeHeap_memory + OFFSET_VirtualSpace_high);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
163
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
164 this->CodeCache_segmap_low = copyin_ptr(this->CodeCache_heap_address +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
165 OFFSET_CodeHeap_segmap + OFFSET_VirtualSpace_low);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
166
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
167 this->CodeCache_segmap_high = copyin_ptr(this->CodeCache_heap_address +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
168 OFFSET_CodeHeap_segmap + OFFSET_VirtualSpace_high);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
169
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
170 this->CodeHeap_log2_segment_size = copyin_uint32(
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
171 this->CodeCache_heap_address + OFFSET_CodeHeap_log2_segment_size);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
172
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
173 this->Method_vtbl = (pointer) &``__1cNMethodG__vtbl_;
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
174
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
175 /*
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
176 * Get Java heap bounds
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
177 */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
178 this->Universe_collectedHeap = copyin_ptr(&``__1cIUniverseO_collectedHeap_);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
179 this->heap_start = copyin_ptr(this->Universe_collectedHeap +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
180 OFFSET_CollectedHeap_reserved +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
181 OFFSET_MemRegion_start);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
182 this->heap_size = SIZE_HeapWord *
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
183 copyin_ptr(this->Universe_collectedHeap +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
184 OFFSET_CollectedHeap_reserved +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
185 OFFSET_MemRegion_word_size
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
186 );
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
187 this->heap_end = this->heap_start + this->heap_size;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
188 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
189
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
190 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
191 /!this->done &&
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
192 this->CodeCache_low <= this->pc && this->pc < this->CodeCache_high/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
193 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
194 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
195 this->codecache = 1;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
196
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
197 /*
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
198 * Find start.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
199 */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
200 this->segment = (this->pc - this->CodeCache_low) >>
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
201 this->CodeHeap_log2_segment_size;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
202 this->block = this->CodeCache_segmap_low;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
203 this->tag = copyin_uchar(this->block + this->segment);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
204 "second";
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
205 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
206
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
207 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
208 /!this->done && this->codecache && this->tag > 0/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
209 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
210 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
211 this->tag = copyin_uchar(this->block + this->segment);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
212 this->segment = this->segment - this->tag;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
213 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
214
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
215 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
216 /!this->done && this->codecache && this->tag > 0/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
217 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
218 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
219 this->tag = copyin_uchar(this->block + this->segment);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
220 this->segment = this->segment - this->tag;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
221 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
222
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
223 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
224 /!this->done && this->codecache && this->tag > 0/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
225 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
226 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
227 this->tag = copyin_uchar(this->block + this->segment);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
228 this->segment = this->segment - this->tag;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
229 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
230
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
231 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
232 /!this->done && this->codecache && this->tag > 0/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
233 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
234 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
235 this->tag = copyin_uchar(this->block + this->segment);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
236 this->segment = this->segment - this->tag;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
237 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
238
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
239 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
240 /!this->done && this->codecache && this->tag > 0/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
241 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
242 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
243 this->tag = copyin_uchar(this->block + this->segment);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
244 this->segment = this->segment - this->tag;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
245 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
246
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
247 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
248 /!this->done && this->codecache && this->tag > 0/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
249 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
250 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
251 this->error = "<couldn't find start>";
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
252 this->done = 1;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
253 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
254
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
255 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
256 /!this->done && this->codecache/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
257 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
258 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
259 this->block = this->CodeCache_low +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
260 (this->segment << this->CodeHeap_log2_segment_size);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
261 this->used = copyin_uint32(this->block + OFFSET_HeapBlockHeader_used);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
262 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
263
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
264 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
265 /!this->done && this->codecache && !this->used/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
266 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
267 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
268 this->error = "<block not in use>";
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
269 this->done = 1;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
270 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
271
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
272 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
273 /!this->done && this->codecache/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
274 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
275 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
276 this->start = this->block + SIZE_HeapBlockHeader;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
277 this->vtbl = copyin_ptr(this->start);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
278
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
279 this->nmethod_vtbl = (pointer) &``__1cHnmethodG__vtbl_;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
280 this->BufferBlob_vtbl = (pointer) &``__1cKBufferBlobG__vtbl_;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
281 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
282
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
283 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
284 /!this->done && this->vtbl == this->nmethod_vtbl/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
285 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
286 MARK_LINE;
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
287 this->methodPtr = copyin_ptr(this->start + OFFSET_nmethod_method);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
288 this->suffix = '*';
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
289 this->isMethod = 1;
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
290 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
291
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
292 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
293 /!this->done && this->vtbl == this->BufferBlob_vtbl/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
294 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
295 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
296 this->name = copyin_ptr(this->start + OFFSET_CodeBlob_name);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
297 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
298
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
299
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
300 dtrace:helper:ustack:
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
301 /!this->done && this->vtbl == this->BufferBlob_vtbl && this->methodPtr != 0/
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
302 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
303 MARK_LINE;
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
304 this->klass = copyin_ptr(this->methodPtr);
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
305 this->isMethod = this->klass == this->Method_vtbl;
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
306 this->done = !this->isMethod;
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
307 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
308
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
309 dtrace:helper:ustack:
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
310 /!this->done && !this->isMethod/
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
311 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
312 MARK_LINE;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
313 this->name = copyin_ptr(this->start + OFFSET_CodeBlob_name);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
314 this->result = this->name != 0 ? copyinstr(this->name) : "<CodeBlob>";
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
315 this->done = 1;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
316 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
317
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
318 dtrace:helper:ustack:
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
319 /!this->done && this->isMethod/
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
320 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
321 MARK_LINE;
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
322 this->constMethod = copyin_ptr(this->methodPtr +
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
323 OFFSET_Method_constMethod);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
324
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
325 this->nameIndex = copyin_uint16(this->constMethod +
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
326 OFFSET_ConstMethod_name_index);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
327
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
328 this->signatureIndex = copyin_uint16(this->constMethod +
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
329 OFFSET_ConstMethod_signature_index);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
330
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
331 this->constantPool = copyin_ptr(this->constMethod +
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
332 OFFSET_ConstMethod_constants);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
333
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
334 this->nameSymbol = copyin_ptr(this->constantPool +
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
335 this->nameIndex * sizeof (pointer) + SIZE_ConstantPool);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
336
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
337 this->nameSymbolLength = copyin_uint16(this->nameSymbol +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
338 OFFSET_Symbol_length);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
339
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
340 this->signatureSymbol = copyin_ptr(this->constantPool +
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
341 this->signatureIndex * sizeof (pointer) + SIZE_ConstantPool);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
342
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
343 this->signatureSymbolLength = copyin_uint16(this->signatureSymbol +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
344 OFFSET_Symbol_length);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
345
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
346 this->klassPtr = copyin_ptr(this->constantPool +
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
347 OFFSET_ConstantPool_pool_holder);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
348
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
349 this->klassSymbol = copyin_ptr(this->klassPtr +
6725
da91efe96a93 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 4006
diff changeset
350 OFFSET_Klass_name);
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
351
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
352 this->klassSymbolLength = copyin_uint16(this->klassSymbol +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
353 OFFSET_Symbol_length);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
354
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
355 /*
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
356 * Enough for three strings, plus the '.', plus the trailing '\0'.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
357 */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
358 this->result = (char *) alloca(this->klassSymbolLength +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
359 this->nameSymbolLength +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
360 this->signatureSymbolLength + 2 + 1);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
361
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
362 copyinto(this->klassSymbol + OFFSET_Symbol_body,
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
363 this->klassSymbolLength, this->result);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
364
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
365 /*
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
366 * Add the '.' between the class and the name.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
367 */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
368 this->result[this->klassSymbolLength] = '.';
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
369
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
370 copyinto(this->nameSymbol + OFFSET_Symbol_body,
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
371 this->nameSymbolLength,
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
372 this->result + this->klassSymbolLength + 1);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
373
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
374 copyinto(this->signatureSymbol + OFFSET_Symbol_body,
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
375 this->signatureSymbolLength,
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
376 this->result + this->klassSymbolLength +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
377 this->nameSymbolLength + 1);
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
378
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
379 /*
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
380 * Now we need to add a trailing '\0' and possibly a tag character.
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
381 */
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
382 this->result[this->klassSymbolLength + 1 +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
383 this->nameSymbolLength +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
384 this->signatureSymbolLength] = this->suffix;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
385 this->result[this->klassSymbolLength + 2 +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
386 this->nameSymbolLength +
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
387 this->signatureSymbolLength] = '\0';
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
388
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
389 this->done = 1;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
390 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
391
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
392 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
393 /this->done && this->error == (char *) NULL/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
394 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
395 this->result;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
396 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
397
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
398 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
399 /this->done && this->error != (char *) NULL/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
400 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
401 this->error;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
402 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
403
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
404 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
405 /!this->done && this->codecache/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
406 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
407 this->done = 1;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
408 "error";
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
409 }
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
410
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
411
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
412 dtrace:helper:ustack:
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
413 /!this->done/
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
414 {
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
415 NULL;
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents:
diff changeset
416 }