comparison src/share/vm/classfile/systemDictionary.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 0ca3dd0ffaba
children 89e4d67fdd2a 800078be49d2
comparison
equal deleted inserted replaced
9055:dcdeb150988c 9071:68fe50d4f1d5
1590 1590
1591 1591
1592 // Used for assertions and verification only 1592 // Used for assertions and verification only
1593 Klass* SystemDictionary::find_class(Symbol* class_name, ClassLoaderData* loader_data) { 1593 Klass* SystemDictionary::find_class(Symbol* class_name, ClassLoaderData* loader_data) {
1594 #ifndef ASSERT 1594 #ifndef ASSERT
1595 guarantee(VerifyBeforeGC || 1595 guarantee(VerifyBeforeGC ||
1596 VerifyDuringGC || 1596 VerifyDuringGC ||
1597 VerifyBeforeExit || 1597 VerifyBeforeExit ||
1598 VerifyDuringStartup ||
1598 VerifyAfterGC, "too expensive"); 1599 VerifyAfterGC, "too expensive");
1599 #endif 1600 #endif
1600 assert_locked_or_safepoint(SystemDictionary_lock); 1601 assert_locked_or_safepoint(SystemDictionary_lock);
1601 1602
1602 // First look in the loaded class array 1603 // First look in the loaded class array