comparison src/cpu/sparc/vm/vtableStubs_sparc.cpp @ 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 f0c2369fda5a
comparison
equal deleted inserted replaced
6847:65d07d9ee446 6848:8e47bac5643a
218 if (is_vtable_stub) { 218 if (is_vtable_stub) {
219 // ld;ld;ld,jmp,nop 219 // ld;ld;ld,jmp,nop
220 const int basic = 5*BytesPerInstWord + 220 const int basic = 5*BytesPerInstWord +
221 // shift;add for load_klass (only shift with zero heap based) 221 // shift;add for load_klass (only shift with zero heap based)
222 (UseCompressedKlassPointers ? 222 (UseCompressedKlassPointers ?
223 ((Universe::narrow_oop_base() == NULL) ? BytesPerInstWord : 2*BytesPerInstWord) : 0); 223 ((Universe::narrow_klass_base() == NULL) ? BytesPerInstWord : 2*BytesPerInstWord) : 0);
224 return basic + slop; 224 return basic + slop;
225 } else { 225 } else {
226 const int basic = (28 LP64_ONLY(+ 6)) * BytesPerInstWord + 226 const int basic = (28 LP64_ONLY(+ 6)) * BytesPerInstWord +
227 // shift;add for load_klass (only shift with zero heap based) 227 // shift;add for load_klass (only shift with zero heap based)
228 (UseCompressedKlassPointers ? 228 (UseCompressedKlassPointers ?
229 ((Universe::narrow_oop_base() == NULL) ? BytesPerInstWord : 2*BytesPerInstWord) : 0); 229 ((Universe::narrow_klass_base() == NULL) ? BytesPerInstWord : 2*BytesPerInstWord) : 0);
230 return (basic + slop); 230 return (basic + slop);
231 } 231 }
232 } 232 }
233 233
234 // In order to tune these parameters, run the JVM with VM options 234 // In order to tune these parameters, run the JVM with VM options