Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
235:9c2ecc2ffb12 | 237:1fdb98a17101 |
---|---|
25 #include "incls/_precompiled.incl" | 25 #include "incls/_precompiled.incl" |
26 #include "incls/_assembler_linux_sparc.cpp.incl" | 26 #include "incls/_assembler_linux_sparc.cpp.incl" |
27 | 27 |
28 #include <asm-sparc/traps.h> | 28 #include <asm-sparc/traps.h> |
29 | 29 |
30 bool MacroAssembler::needs_explicit_null_check(intptr_t offset) { | |
31 // Since the linux kernel resides at the low end of | |
32 // user address space, no null pointer check is needed. | |
33 return offset < 0 || offset >= 0x100000; | |
34 } | |
35 | |
36 void MacroAssembler::read_ccr_trap(Register ccr_save) { | 30 void MacroAssembler::read_ccr_trap(Register ccr_save) { |
37 // No implementation | 31 // No implementation |
38 breakpoint_trap(); | 32 breakpoint_trap(); |
39 } | 33 } |
40 | 34 |