comparison src/share/vm/memory/genCollectedHeap.cpp @ 9071:68fe50d4f1d5

8011343: Add new flag for verifying the heap during startup Summary: Perform verification during VM startup under control of new flag and within a VMOperation. Reviewed-by: stefank, jmasa, brutisso
author johnc
date Fri, 05 Apr 2013 10:20:04 -0700
parents 79af1312fc2c
children 7b835924c31c
comparison
equal deleted inserted replaced
9055:dcdeb150988c 9071:68fe50d4f1d5
817 } 817 }
818 818
819 // Returns "TRUE" iff "p" points into the committed areas of the heap. 819 // Returns "TRUE" iff "p" points into the committed areas of the heap.
820 bool GenCollectedHeap::is_in(const void* p) const { 820 bool GenCollectedHeap::is_in(const void* p) const {
821 #ifndef ASSERT 821 #ifndef ASSERT
822 guarantee(VerifyBeforeGC || 822 guarantee(VerifyBeforeGC ||
823 VerifyDuringGC || 823 VerifyDuringGC ||
824 VerifyBeforeExit || 824 VerifyBeforeExit ||
825 PrintAssembly || 825 VerifyDuringStartup ||
826 tty->count() != 0 || // already printing 826 PrintAssembly ||
827 VerifyAfterGC || 827 tty->count() != 0 || // already printing
828 VerifyAfterGC ||
828 VMError::fatal_error_in_progress(), "too expensive"); 829 VMError::fatal_error_in_progress(), "too expensive");
829 830
830 #endif 831 #endif
831 // This might be sped up with a cache of the last generation that 832 // This might be sped up with a cache of the last generation that
832 // answered yes. 833 // answered yes.