src/share/vm/memory/universe.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7028374 Sdiff src/share/vm/memory

src/share/vm/memory/universe.cpp

Print this page




1296   if (!silent) gclog_or_tty->print("[Verifying ");
1297   if (!silent) gclog_or_tty->print("threads ");
1298   Threads::verify();
1299   heap()->verify(allow_dirty, silent, option);
1300 
1301   if (!silent) gclog_or_tty->print("syms ");
1302   SymbolTable::verify();
1303   if (!silent) gclog_or_tty->print("strs ");
1304   StringTable::verify();
1305   {
1306     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
1307     if (!silent) gclog_or_tty->print("zone ");
1308     CodeCache::verify();
1309   }
1310   if (!silent) gclog_or_tty->print("dict ");
1311   SystemDictionary::verify();
1312   if (!silent) gclog_or_tty->print("hand ");
1313   JNIHandles::verify();
1314   if (!silent) gclog_or_tty->print("C-heap ");
1315   os::check_heap();


1316   if (!silent) gclog_or_tty->print_cr("]");
1317 
1318   _verify_in_progress = false;
1319 }
1320 
1321 // Oop verification (see MacroAssembler::verify_oop)
1322 
1323 static uintptr_t _verify_oop_data[2]   = {0, (uintptr_t)-1};
1324 static uintptr_t _verify_klass_data[2] = {0, (uintptr_t)-1};
1325 
1326 
1327 static void calculate_verify_data(uintptr_t verify_data[2],
1328                                   HeapWord* low_boundary,
1329                                   HeapWord* high_boundary) {
1330   assert(low_boundary < high_boundary, "bad interval");
1331 
1332   // decide which low-order bits we require to be clear:
1333   size_t alignSize = MinObjAlignmentInBytes;
1334   size_t min_object_size = CollectedHeap::min_fill_size();
1335 




1296   if (!silent) gclog_or_tty->print("[Verifying ");
1297   if (!silent) gclog_or_tty->print("threads ");
1298   Threads::verify();
1299   heap()->verify(allow_dirty, silent, option);
1300 
1301   if (!silent) gclog_or_tty->print("syms ");
1302   SymbolTable::verify();
1303   if (!silent) gclog_or_tty->print("strs ");
1304   StringTable::verify();
1305   {
1306     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
1307     if (!silent) gclog_or_tty->print("zone ");
1308     CodeCache::verify();
1309   }
1310   if (!silent) gclog_or_tty->print("dict ");
1311   SystemDictionary::verify();
1312   if (!silent) gclog_or_tty->print("hand ");
1313   JNIHandles::verify();
1314   if (!silent) gclog_or_tty->print("C-heap ");
1315   os::check_heap();
1316   if (!silent) gclog_or_tty->print("code cache ");
1317   CodeCache::verify_oops();
1318   if (!silent) gclog_or_tty->print_cr("]");
1319 
1320   _verify_in_progress = false;
1321 }
1322 
1323 // Oop verification (see MacroAssembler::verify_oop)
1324 
1325 static uintptr_t _verify_oop_data[2]   = {0, (uintptr_t)-1};
1326 static uintptr_t _verify_klass_data[2] = {0, (uintptr_t)-1};
1327 
1328 
1329 static void calculate_verify_data(uintptr_t verify_data[2],
1330                                   HeapWord* low_boundary,
1331                                   HeapWord* high_boundary) {
1332   assert(low_boundary < high_boundary, "bad interval");
1333 
1334   // decide which low-order bits we require to be clear:
1335   size_t alignSize = MinObjAlignmentInBytes;
1336   size_t min_object_size = CollectedHeap::min_fill_size();
1337 


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