8226757: Shenandoah: Make traversal and passive modes explicit

Reviewed-by: shade
This commit is contained in:
Roman Kennke 2019-07-04 14:28:31 +02:00
parent ba3ba19536
commit d4afa4e1c8
58 changed files with 588 additions and 326 deletions

View file

@ -225,7 +225,7 @@ template <typename ITR>
void ShenandoahRootScanner<ITR>::roots_do(uint worker_id, OopClosure* oops, CLDClosure* clds, CodeBlobClosure* code, ThreadClosure *tc) {
assert(!ShenandoahSafepoint::is_at_shenandoah_safepoint() ||
!ShenandoahHeap::heap()->unload_classes() ||
ShenandoahHeap::heap()->heuristics()->can_do_traversal_gc(),
ShenandoahHeap::heap()->is_traversal_mode(),
"Expect class unloading or traversal when Shenandoah cycle is running");
ShenandoahParallelOopsDoThreadClosure tc_cl(oops, code, tc);
ResourceMark rm;