Mercurial > hg > graal-compiler
diff src/os_cpu/linux_sparc/vm/assembler_linux_sparc.cpp @ 237:1fdb98a17101
6716785: implicit null checks not triggering with CompressedOops
Summary: allocate alignment-sized page(s) below java heap so that memory accesses at heap_base+1page give signal and cause an implicit null check
Reviewed-by: kvn, jmasa, phh, jcoomes
author | coleenp |
---|---|
date | Sat, 19 Jul 2008 17:38:22 -0400 |
parents | d1605aabd0a1 |
children | c18cbe5936b8 |
line wrap: on
line diff
--- a/src/os_cpu/linux_sparc/vm/assembler_linux_sparc.cpp Fri Jul 11 01:14:44 2008 -0700 +++ b/src/os_cpu/linux_sparc/vm/assembler_linux_sparc.cpp Sat Jul 19 17:38:22 2008 -0400 @@ -27,12 +27,6 @@ #include <asm-sparc/traps.h> -bool MacroAssembler::needs_explicit_null_check(intptr_t offset) { - // Since the linux kernel resides at the low end of - // user address space, no null pointer check is needed. - return offset < 0 || offset >= 0x100000; -} - void MacroAssembler::read_ccr_trap(Register ccr_save) { // No implementation breakpoint_trap();