comparison src/share/vm/runtime/arguments.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 0c039865ef2b
children 480d934f62a8
comparison
equal deleted inserted replaced
9055:dcdeb150988c 9071:68fe50d4f1d5
2004 // which are not visible at the CollectedHeap level. We want to 2004 // which are not visible at the CollectedHeap level. We want to
2005 // be able to acquire these locks and then do the iteration rather 2005 // be able to acquire these locks and then do the iteration rather
2006 // than just disable the lock verification. This will be fixed under 2006 // than just disable the lock verification. This will be fixed under
2007 // bug 4788986. 2007 // bug 4788986.
2008 if (UseConcMarkSweepGC && FLSVerifyAllHeapReferences) { 2008 if (UseConcMarkSweepGC && FLSVerifyAllHeapReferences) {
2009 if (VerifyGCStartAt == 0) { 2009 if (VerifyDuringStartup) {
2010 warning("Heap verification at start-up disabled " 2010 warning("Heap verification at start-up disabled "
2011 "(due to current incompatibility with FLSVerifyAllHeapReferences)"); 2011 "(due to current incompatibility with FLSVerifyAllHeapReferences)");
2012 VerifyGCStartAt = 1; // Disable verification at start-up 2012 VerifyDuringStartup = false; // Disable verification at start-up
2013 } 2013 }
2014
2014 if (VerifyBeforeExit) { 2015 if (VerifyBeforeExit) {
2015 warning("Heap verification at shutdown disabled " 2016 warning("Heap verification at shutdown disabled "
2016 "(due to current incompatibility with FLSVerifyAllHeapReferences)"); 2017 "(due to current incompatibility with FLSVerifyAllHeapReferences)");
2017 VerifyBeforeExit = false; // Disable verification at shutdown 2018 VerifyBeforeExit = false; // Disable verification at shutdown
2018 } 2019 }