Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp @ 14309:63a4eb8bcd23
8025856: Fix typos in the GC code
Summary: Fix about 440 typos in comments in the VM code
Reviewed-by: mgerdin, tschatzl, coleenp, kmo, jcoomes
author | jwilhelm |
---|---|
date | Thu, 23 Jan 2014 14:47:23 +0100 |
parents | 14d3f71f831d |
children | e5d78f318aec |
comparison
equal
deleted
inserted
replaced
14308:870aedf4ba4f | 14309:63a4eb8bcd23 |
---|---|
464 } | 464 } |
465 | 465 |
466 void CMSAdaptiveSizePolicy::checkpoint_roots_final_begin() { | 466 void CMSAdaptiveSizePolicy::checkpoint_roots_final_begin() { |
467 _STW_timer.stop(); | 467 _STW_timer.stop(); |
468 _latest_cms_initial_mark_end_to_remark_start_secs = _STW_timer.seconds(); | 468 _latest_cms_initial_mark_end_to_remark_start_secs = _STW_timer.seconds(); |
469 // Start accumumlating time for the remark in the STW timer. | 469 // Start accumulating time for the remark in the STW timer. |
470 _STW_timer.reset(); | 470 _STW_timer.reset(); |
471 _STW_timer.start(); | 471 _STW_timer.start(); |
472 } | 472 } |
473 | 473 |
474 void CMSAdaptiveSizePolicy::checkpoint_roots_final_end( | 474 void CMSAdaptiveSizePolicy::checkpoint_roots_final_end( |
535 if ((_latest_cms_msc_end_to_msc_start_time_secs > 0.0) && | 535 if ((_latest_cms_msc_end_to_msc_start_time_secs > 0.0) && |
536 (msc_pause_in_seconds > 0.0)) { | 536 (msc_pause_in_seconds > 0.0)) { |
537 avg_msc_pause()->sample(msc_pause_in_seconds); | 537 avg_msc_pause()->sample(msc_pause_in_seconds); |
538 double mutator_time_in_seconds = 0.0; | 538 double mutator_time_in_seconds = 0.0; |
539 if (_latest_cms_collection_end_to_collection_start_secs == 0.0) { | 539 if (_latest_cms_collection_end_to_collection_start_secs == 0.0) { |
540 // This assertion may fail because of time stamp gradularity. | 540 // This assertion may fail because of time stamp granularity. |
541 // Comment it out and investiage it at a later time. The large | 541 // Comment it out and investigate it at a later time. The large |
542 // time stamp granularity occurs on some older linux systems. | 542 // time stamp granularity occurs on some older linux systems. |
543 #ifndef CLOCK_GRANULARITY_TOO_LARGE | 543 #ifndef CLOCK_GRANULARITY_TOO_LARGE |
544 assert((_latest_cms_concurrent_marking_time_secs == 0.0) && | 544 assert((_latest_cms_concurrent_marking_time_secs == 0.0) && |
545 (_latest_cms_concurrent_precleaning_time_secs == 0.0) && | 545 (_latest_cms_concurrent_precleaning_time_secs == 0.0) && |
546 (_latest_cms_concurrent_sweeping_time_secs == 0.0), | 546 (_latest_cms_concurrent_sweeping_time_secs == 0.0), |
834 return avg_major_gc_cost()->average(); | 834 return avg_major_gc_cost()->average(); |
835 } | 835 } |
836 | 836 |
837 void CMSAdaptiveSizePolicy::ms_collection_marking_begin() { | 837 void CMSAdaptiveSizePolicy::ms_collection_marking_begin() { |
838 _STW_timer.stop(); | 838 _STW_timer.stop(); |
839 // Start accumumlating time for the marking in the STW timer. | 839 // Start accumulating time for the marking in the STW timer. |
840 _STW_timer.reset(); | 840 _STW_timer.reset(); |
841 _STW_timer.start(); | 841 _STW_timer.start(); |
842 } | 842 } |
843 | 843 |
844 void CMSAdaptiveSizePolicy::ms_collection_marking_end( | 844 void CMSAdaptiveSizePolicy::ms_collection_marking_end( |
1225 // Keep running averages on how much survived | 1225 // Keep running averages on how much survived |
1226 | 1226 |
1227 // We use the tenuring threshold to equalize the cost of major | 1227 // We use the tenuring threshold to equalize the cost of major |
1228 // and minor collections. | 1228 // and minor collections. |
1229 // ThresholdTolerance is used to indicate how sensitive the | 1229 // ThresholdTolerance is used to indicate how sensitive the |
1230 // tenuring threshold is to differences in cost betweent the | 1230 // tenuring threshold is to differences in cost between the |
1231 // collection types. | 1231 // collection types. |
1232 | 1232 |
1233 // Get the times of interest. This involves a little work, so | 1233 // Get the times of interest. This involves a little work, so |
1234 // we cache the values here. | 1234 // we cache the values here. |
1235 const double major_cost = major_gc_cost(); | 1235 const double major_cost = major_gc_cost(); |