Skip to content
Permalink
Browse files
8244807: Shenandoah: ditch filter in ShenandoahUnload::unload
Reviewed-by: rkennke, zgu
  • Loading branch information
shipilev committed May 12, 2020
1 parent ba59fe9 commit e722efa65c5ff94a2aa1498a002fb9adaca6dcd7
Showing 1 changed file with 2 additions and 6 deletions.
@@ -143,13 +143,9 @@ class ShenandoahUnloadRendezvousClosure : public HandshakeClosure {
};

void ShenandoahUnload::unload() {
assert(ShenandoahConcurrentRoots::can_do_concurrent_class_unloading(), "Why we here?");

ShenandoahHeap* heap = ShenandoahHeap::heap();

if (!heap->is_concurrent_weak_root_in_progress()) {
return;
}
assert(ShenandoahConcurrentRoots::can_do_concurrent_class_unloading(), "Filtered by caller");
assert(heap->is_concurrent_weak_root_in_progress(), "Filtered by caller");

// Unlink stale metadata and nmethods
{

0 comments on commit e722efa

Please sign in to comment.