< prev index next >

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

Print this page

        

*** 151,161 **** */ void ShenandoahPacer::setup_for_idle() { assert(ShenandoahPacing, "Only be here when pacing is enabled"); ! size_t initial = _heap->max_capacity() * ShenandoahPacingIdleSlack / 100; double tax = 1; restart_with(initial, tax); log_info(gc, ergo)("Pacer for Idle. Initial: " SIZE_FORMAT "M, Alloc Tax Rate: %.1fx", --- 151,161 ---- */ void ShenandoahPacer::setup_for_idle() { assert(ShenandoahPacing, "Only be here when pacing is enabled"); ! size_t initial = _heap->capacity() * ShenandoahPacingIdleSlack / 100; double tax = 1; restart_with(initial, tax); log_info(gc, ergo)("Pacer for Idle. Initial: " SIZE_FORMAT "M, Alloc Tax Rate: %.1fx",
*** 164,174 **** size_t ShenandoahPacer::update_and_get_progress_history() { if (_progress == -1) { // First initialization, report some prior Atomic::store((intptr_t)PACING_PROGRESS_ZERO, &_progress); ! return (size_t) (_heap->max_capacity() * 0.1); } else { // Record history, and reply historical data _progress_history->add(_progress); Atomic::store((intptr_t)PACING_PROGRESS_ZERO, &_progress); return (size_t) (_progress_history->avg() * HeapWordSize); --- 164,174 ---- size_t ShenandoahPacer::update_and_get_progress_history() { if (_progress == -1) { // First initialization, report some prior Atomic::store((intptr_t)PACING_PROGRESS_ZERO, &_progress); ! return (size_t) (_heap->capacity() * 0.1); } else { // Record history, and reply historical data _progress_history->add(_progress); Atomic::store((intptr_t)PACING_PROGRESS_ZERO, &_progress); return (size_t) (_progress_history->avg() * HeapWordSize);
< prev index next >