< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahAsserts.cpp

Print this page




 345   report_vm_error(file, line, msg.buffer());
 346 }
 347 
 348 void ShenandoahAsserts::assert_rp_isalive_not_installed(const char *file, int line) {
 349   ShenandoahHeap* heap = ShenandoahHeap::heap();
 350   ReferenceProcessor* rp = heap->ref_processor();
 351   if (rp->is_alive_non_header() != NULL) {
 352     print_rp_failure("Shenandoah assert_rp_isalive_not_installed failed", rp->is_alive_non_header(),
 353                      file, line);
 354   }
 355 }
 356 
 357 void ShenandoahAsserts::assert_rp_isalive_installed(const char *file, int line) {
 358   ShenandoahHeap* heap = ShenandoahHeap::heap();
 359   ReferenceProcessor* rp = heap->ref_processor();
 360   if (rp->is_alive_non_header() == NULL) {
 361     print_rp_failure("Shenandoah assert_rp_isalive_installed failed", rp->is_alive_non_header(),
 362                      file, line);
 363   }
 364 }
 365 
 366 void ShenandoahAsserts::assert_locked_or_shenandoah_safepoint(const Monitor* lock, const char* file, int line) {
 367   if (ShenandoahSafepoint::is_at_shenandoah_safepoint()) {
 368     return;
 369   }
 370 
 371   if (lock->owned_by_self()) {
 372     return;
 373   }
 374 
 375   ShenandoahMessageBuffer msg("Must ba at a Shenandoah safepoint or held %s lock", lock->name());
 376   report_vm_error(file, line, msg.buffer());
 377 }


 345   report_vm_error(file, line, msg.buffer());
 346 }
 347 
 348 void ShenandoahAsserts::assert_rp_isalive_not_installed(const char *file, int line) {
 349   ShenandoahHeap* heap = ShenandoahHeap::heap();
 350   ReferenceProcessor* rp = heap->ref_processor();
 351   if (rp->is_alive_non_header() != NULL) {
 352     print_rp_failure("Shenandoah assert_rp_isalive_not_installed failed", rp->is_alive_non_header(),
 353                      file, line);
 354   }
 355 }
 356 
 357 void ShenandoahAsserts::assert_rp_isalive_installed(const char *file, int line) {
 358   ShenandoahHeap* heap = ShenandoahHeap::heap();
 359   ReferenceProcessor* rp = heap->ref_processor();
 360   if (rp->is_alive_non_header() == NULL) {
 361     print_rp_failure("Shenandoah assert_rp_isalive_installed failed", rp->is_alive_non_header(),
 362                      file, line);
 363   }
 364 }













< prev index next >