src/share/vm/gc_interface/collectedHeap.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/gc_interface/collectedHeap.cpp	Wed Dec 28 15:57:49 2011
--- new/src/share/vm/gc_interface/collectedHeap.cpp	Wed Dec 28 15:57:49 2011

*** 480,496 **** --- 480,496 ---- // Test that NULL is not in the heap. assert(!heap->is_in(NULL), "NULL is unexpectedly in the heap"); // Test that a pointer to before the heap start is reported as outside the heap. ! assert(heap->_reserved.start() >= (void*)(uintptr_t)MinObjAlignment, "sanity"); ! void* before_heap = (void*)((uintptr_t)heap->_reserved.start() - MinObjAlignment); assert(!heap->is_in(before_heap), err_msg("before_heap: " PTR_FORMAT " is unexpectedly in the heap", before_heap)); // Test that a pointer to after the heap end is reported as outside the heap. - assert(heap->_reserved.end() <= (void*)(uintptr_t(-1) - (uint)MinObjAlignment), "sanity"); ! void* after_heap = (void*)((uintptr_t)heap->_reserved.end() + MinObjAlignment); assert(!heap->is_in(after_heap), err_msg("after_heap: " PTR_FORMAT " is unexpectedly in the heap", after_heap)); } #endif

src/share/vm/gc_interface/collectedHeap.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File