comparison src/cpu/x86/vm/vtableStubs_x86_64.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 cd3d6a6b95d9
comparison
equal deleted inserted replaced
6847:65d07d9ee446 6848:8e47bac5643a
210 210
211 int VtableStub::pd_code_size_limit(bool is_vtable_stub) { 211 int VtableStub::pd_code_size_limit(bool is_vtable_stub) {
212 if (is_vtable_stub) { 212 if (is_vtable_stub) {
213 // Vtable stub size 213 // Vtable stub size
214 return (DebugVtables ? 512 : 24) + (CountCompiledCalls ? 13 : 0) + 214 return (DebugVtables ? 512 : 24) + (CountCompiledCalls ? 13 : 0) +
215 (UseCompressedOops ? 16 : 0); // 1 leaq can be 3 bytes + 1 long 215 (UseCompressedKlassPointers ? 16 : 0); // 1 leaq can be 3 bytes + 1 long
216 } else { 216 } else {
217 // Itable stub size 217 // Itable stub size
218 return (DebugVtables ? 512 : 74) + (CountCompiledCalls ? 13 : 0) + 218 return (DebugVtables ? 512 : 74) + (CountCompiledCalls ? 13 : 0) +
219 (UseCompressedOops ? 32 : 0); // 2 leaqs 219 (UseCompressedKlassPointers ? 32 : 0); // 2 leaqs
220 } 220 }
221 // In order to tune these parameters, run the JVM with VM options 221 // In order to tune these parameters, run the JVM with VM options
222 // +PrintMiscellaneous and +WizardMode to see information about 222 // +PrintMiscellaneous and +WizardMode to see information about
223 // actual itable stubs. Look for lines like this: 223 // actual itable stubs. Look for lines like this:
224 // itable #1 at 0x5551212[71] left over: 3 224 // itable #1 at 0x5551212[71] left over: 3