Mercurial > hg > graal-compiler
comparison src/os/bsd/dtrace/jhelper.d @ 6848:8e47bac5643a
7054512: Compress class pointers after perm gen removal
Summary: support of compress class pointers in the compilers.
Reviewed-by: kvn, twisti
author | roland |
---|---|
date | Tue, 09 Oct 2012 10:11:38 +0200 |
parents | da91efe96a93 |
children |
comparison
equal
deleted
inserted
replaced
6847:65d07d9ee446 | 6848:8e47bac5643a |
---|---|
43 | 43 |
44 extern pointer __JvmOffsets; | 44 extern pointer __JvmOffsets; |
45 | 45 |
46 extern pointer __1cJCodeCacheF_heap_; | 46 extern pointer __1cJCodeCacheF_heap_; |
47 extern pointer __1cIUniverseO_collectedHeap_; | 47 extern pointer __1cIUniverseO_collectedHeap_; |
48 extern pointer __1cIUniverseL_narrow_oop_; | |
49 #ifdef _LP64 | |
50 extern pointer UseCompressedOops; | |
51 #endif | |
52 | 48 |
53 extern pointer __1cHnmethodG__vtbl_; | 49 extern pointer __1cHnmethodG__vtbl_; |
54 extern pointer __1cNMethodG__vtbl_; | 50 extern pointer __1cNMethodG__vtbl_; |
55 extern pointer __1cKBufferBlobG__vtbl_; | 51 extern pointer __1cKBufferBlobG__vtbl_; |
56 | 52 |
134 copyin_offset(OFFSET_nmethod_method); | 130 copyin_offset(OFFSET_nmethod_method); |
135 copyin_offset(SIZE_HeapBlockHeader); | 131 copyin_offset(SIZE_HeapBlockHeader); |
136 copyin_offset(SIZE_oopDesc); | 132 copyin_offset(SIZE_oopDesc); |
137 copyin_offset(SIZE_ConstantPool); | 133 copyin_offset(SIZE_ConstantPool); |
138 | 134 |
139 copyin_offset(OFFSET_NarrowOopStruct_base); | 135 copyin_offset(OFFSET_NarrowPtrStruct_base); |
140 copyin_offset(OFFSET_NarrowOopStruct_shift); | 136 copyin_offset(OFFSET_NarrowPtrStruct_shift); |
141 | 137 |
142 /* | 138 /* |
143 * The PC to translate is in arg0. | 139 * The PC to translate is in arg0. |
144 */ | 140 */ |
145 this->pc = arg0; | 141 this->pc = arg0; |
157 #endif | 153 #endif |
158 | 154 |
159 this->CodeCache_heap_address = copyin_ptr(&``__1cJCodeCacheF_heap_); | 155 this->CodeCache_heap_address = copyin_ptr(&``__1cJCodeCacheF_heap_); |
160 | 156 |
161 /* Reading volatile values */ | 157 /* Reading volatile values */ |
162 #ifdef _LP64 | |
163 this->Use_Compressed_Oops = copyin_uint8(&``UseCompressedOops); | |
164 #else | |
165 this->Use_Compressed_Oops = 0; | |
166 #endif | |
167 | |
168 this->Universe_narrow_oop_base = copyin_ptr(&``__1cIUniverseL_narrow_oop_ + | |
169 OFFSET_NarrowOopStruct_base); | |
170 this->Universe_narrow_oop_shift = copyin_int32(&``__1cIUniverseL_narrow_oop_ + | |
171 OFFSET_NarrowOopStruct_shift); | |
172 | |
173 this->CodeCache_low = copyin_ptr(this->CodeCache_heap_address + | 158 this->CodeCache_low = copyin_ptr(this->CodeCache_heap_address + |
174 OFFSET_CodeHeap_memory + OFFSET_VirtualSpace_low); | 159 OFFSET_CodeHeap_memory + OFFSET_VirtualSpace_low); |
175 | 160 |
176 this->CodeCache_high = copyin_ptr(this->CodeCache_heap_address + | 161 this->CodeCache_high = copyin_ptr(this->CodeCache_heap_address + |
177 OFFSET_CodeHeap_memory + OFFSET_VirtualSpace_high); | 162 OFFSET_CodeHeap_memory + OFFSET_VirtualSpace_high); |