8244807: Shenandoah: ditch filter in ShenandoahUnload::unload

Reviewed-by: rkennke, zgu
This commit is contained in:
Aleksey Shipilev 2020-05-12 16:19:53 +02:00
parent ba59fe9503
commit e722efa65c

@ -143,13 +143,9 @@ public:
};
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
{