< prev index next >

src/hotspot/share/gc/g1/heapRegion.hpp

Print this page
rev 56939 : [mq]: 8233306-heapregion-sorting
rev 56951 : [mq]: 8234000-make-some-stuff-const
rev 56952 : [mq]: 8233588-cleanup-survrategroup

*** 36,45 **** --- 36,46 ---- #include "runtime/mutex.hpp" #include "utilities/macros.hpp" class G1CollectedHeap; class G1CMBitMap; + class G1Predictions; class HeapRegionRemSet; class HeapRegion; class HeapRegionSetBase; class nmethod;
*** 542,595 **** assert(index != 0, "just checking"); assert(is_young(), "pre-condition"); _young_index_in_cset = index; } ! int age_in_surv_rate_group() { ! assert(_surv_rate_group != NULL, "pre-condition"); ! assert(_age_index > -1, "pre-condition"); ! return _surv_rate_group->age_in_group(_age_index); ! } ! ! void record_surv_words_in_group(size_t words_survived) { ! assert(_surv_rate_group != NULL, "pre-condition"); ! assert(_age_index > -1, "pre-condition"); ! int age_in_group = age_in_surv_rate_group(); ! _surv_rate_group->record_surviving_words(age_in_group, words_survived); ! } ! ! int age_in_surv_rate_group_cond() { ! if (_surv_rate_group != NULL) ! return age_in_surv_rate_group(); ! else ! return -1; ! } ! ! SurvRateGroup* surv_rate_group() { ! return _surv_rate_group; ! } ! void install_surv_rate_group(SurvRateGroup* surv_rate_group) { ! assert(surv_rate_group != NULL, "pre-condition"); ! assert(_surv_rate_group == NULL, "pre-condition"); ! assert(is_young(), "pre-condition"); ! _surv_rate_group = surv_rate_group; ! _age_index = surv_rate_group->next_age_index(); ! } ! void uninstall_surv_rate_group() { ! if (_surv_rate_group != NULL) { ! assert(_age_index > -1, "pre-condition"); ! assert(is_young(), "pre-condition"); ! _surv_rate_group = NULL; ! _age_index = -1; ! } else { ! assert(_age_index == -1, "pre-condition"); ! } ! } // Determine if an object has been allocated since the last // mark performed by the collector. This returns true iff the object // is within the unmarked area of the region. bool obj_allocated_since_prev_marking(oop obj) const { --- 543,562 ---- assert(index != 0, "just checking"); assert(is_young(), "pre-condition"); _young_index_in_cset = index; } ! int age_in_surv_rate_group() const; ! bool has_surv_rate_group() const; ! double surv_rate_prediction(G1Predictions const& predictor) const; ! void install_surv_rate_group(SurvRateGroup* surv_rate_group); ! void uninstall_surv_rate_group(); ! void record_surv_words_in_group(size_t words_survived); // Determine if an object has been allocated since the last // mark performed by the collector. This returns true iff the object // is within the unmarked area of the region. bool obj_allocated_since_prev_marking(oop obj) const {
< prev index next >