comparison src/share/vm/memory/genCollectedHeap.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 850fdf70db2b
comparison
equal deleted inserted replaced
235:9c2ecc2ffb12 237:1fdb98a17101
220 heap_address = NULL; // any address will do. 220 heap_address = NULL; // any address will do.
221 } 221 }
222 222
223 *_total_reserved = total_reserved; 223 *_total_reserved = total_reserved;
224 *_n_covered_regions = n_covered_regions; 224 *_n_covered_regions = n_covered_regions;
225 *heap_rs = ReservedSpace(total_reserved, alignment, 225 *heap_rs = ReservedHeapSpace(total_reserved, alignment,
226 UseLargePages, heap_address); 226 UseLargePages, heap_address);
227 227
228 return heap_address; 228 return heap_address;
229 } 229 }
230 230
231 231