comparison src/os_cpu/linux_x86/vm/assembler_linux_x86_32.cpp @ 168:7793bd37a336

6705887: Compressed Oops: generate x64 addressing and implicit null checks with narrow oops Summary: Generate addresses and implicit null checks with narrow oops to avoid decoding. Reviewed-by: jrose, never
author kvn
date Thu, 29 May 2008 12:04:14 -0700
parents a61af66fc99e
children d1605aabd0a1
comparison
equal deleted inserted replaced
167:feeb96a45707 168:7793bd37a336
38 ArrayAddress tls(tls_base, index); 38 ArrayAddress tls(tls_base, index);
39 39
40 movptr(thread, tls); 40 movptr(thread, tls);
41 } 41 }
42 42
43 bool MacroAssembler::needs_explicit_null_check(int offset) { 43 bool MacroAssembler::needs_explicit_null_check(intptr_t offset) {
44 // Linux kernel guarantees that the first page is always unmapped. Don't 44 // Linux kernel guarantees that the first page is always unmapped. Don't
45 // assume anything more than that. 45 // assume anything more than that.
46 bool offset_in_first_page = 0 <= offset && offset < os::vm_page_size(); 46 bool offset_in_first_page = 0 <= offset && offset < os::vm_page_size();
47 return !offset_in_first_page; 47 return !offset_in_first_page;
48 } 48 }