Mercurial > hg > truffle
comparison src/os/solaris/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 | 7f11c12d7a90 |
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 __1cGMethodG__vtbl_; | 50 extern pointer __1cGMethodG__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; |
155 #else | 151 #else |
156 #error "Don't know architecture" | 152 #error "Don't know architecture" |
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 | |
161 /* 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 | 156 |
173 this->CodeCache_low = copyin_ptr(this->CodeCache_heap_address + | 157 this->CodeCache_low = copyin_ptr(this->CodeCache_heap_address + |
174 OFFSET_CodeHeap_memory + OFFSET_VirtualSpace_low); | 158 OFFSET_CodeHeap_memory + OFFSET_VirtualSpace_low); |
175 | 159 |
176 this->CodeCache_high = copyin_ptr(this->CodeCache_heap_address + | 160 this->CodeCache_high = copyin_ptr(this->CodeCache_heap_address + |