8217343: Shenandoah control thread should be able to run at critical priority

Reviewed-by: rkennke
This commit is contained in:
Aleksey Shipilev 2019-01-19 11:20:01 +01:00
parent 028cf5ae00
commit 2858e8f4e2
3 changed files with 45 additions and 1 deletions

View file

@ -47,7 +47,7 @@ ShenandoahControlThread::ShenandoahControlThread() :
_degen_point(ShenandoahHeap::_degenerated_outside_cycle),
_allocs_seen(0) {
create_and_start();
create_and_start(ShenandoahCriticalControlThreadPriority ? CriticalPriority : NearMaxPriority);
_periodic_task.enroll();
_periodic_satb_flush_task.enroll();
}