equal
deleted
inserted
replaced
545 zero_marked_bytes(); |
545 zero_marked_bytes(); |
546 init_top_at_mark_start(); |
546 init_top_at_mark_start(); |
547 } |
547 } |
548 |
548 |
549 void calc_gc_efficiency(void); |
549 void calc_gc_efficiency(void); |
550 double gc_efficiency() { return _gc_efficiency;} |
550 double gc_efficiency() const { return _gc_efficiency;} |
551 |
551 |
552 uint index_in_opt_cset() const { return _index_in_opt_cset; } |
552 uint index_in_opt_cset() const { return _index_in_opt_cset; } |
553 void set_index_in_opt_cset(uint index) { _index_in_opt_cset = index; } |
553 void set_index_in_opt_cset(uint index) { _index_in_opt_cset = index; } |
554 |
554 |
555 int young_index_in_cset() const { return _young_index_in_cset; } |
555 int young_index_in_cset() const { return _young_index_in_cset; } |
703 // HeapRegionClosure is used for iterating over regions. |
703 // HeapRegionClosure is used for iterating over regions. |
704 // Terminates the iteration when the "do_heap_region" method returns "true". |
704 // Terminates the iteration when the "do_heap_region" method returns "true". |
705 class HeapRegionClosure : public StackObj { |
705 class HeapRegionClosure : public StackObj { |
706 friend class HeapRegionManager; |
706 friend class HeapRegionManager; |
707 friend class G1CollectionSet; |
707 friend class G1CollectionSet; |
708 friend class CollectionSetChooser; |
708 friend class G1CollectionSetCandidates; |
709 |
709 |
710 bool _is_complete; |
710 bool _is_complete; |
711 void set_incomplete() { _is_complete = false; } |
711 void set_incomplete() { _is_complete = false; } |
712 |
712 |
713 public: |
713 public: |