comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 4836:d30fa85f9994

6484965: G1: piggy-back liveness accounting phase on marking Summary: Remove the separate counting phase of concurrent marking by tracking the amount of marked bytes and the cards spanned by marked objects in marking task/worker thread local data structures, which are updated as individual objects are marked. Reviewed-by: brutisso, tonyp
author johnc
date Thu, 12 Jan 2012 00:06:47 -0800
parents 9509c20bba28
children caa4652b4414
comparison
equal deleted inserted replaced
4835:877914d90c57 4836:d30fa85f9994
1907 OopsInHeapRegionClosure* _evac_failure_cl; 1907 OopsInHeapRegionClosure* _evac_failure_cl;
1908 G1ParScanHeapEvacClosure* _evac_cl; 1908 G1ParScanHeapEvacClosure* _evac_cl;
1909 G1ParScanPartialArrayClosure* _partial_scan_cl; 1909 G1ParScanPartialArrayClosure* _partial_scan_cl;
1910 1910
1911 int _hash_seed; 1911 int _hash_seed;
1912 int _queue_num; 1912 uint _queue_num;
1913 1913
1914 size_t _term_attempts; 1914 size_t _term_attempts;
1915 1915
1916 double _start; 1916 double _start;
1917 double _start_strong_roots; 1917 double _start_strong_roots;
1951 } 1951 }
1952 } 1952 }
1953 } 1953 }
1954 1954
1955 public: 1955 public:
1956 G1ParScanThreadState(G1CollectedHeap* g1h, int queue_num); 1956 G1ParScanThreadState(G1CollectedHeap* g1h, uint queue_num);
1957 1957
1958 ~G1ParScanThreadState() { 1958 ~G1ParScanThreadState() {
1959 FREE_C_HEAP_ARRAY(size_t, _surviving_young_words_base); 1959 FREE_C_HEAP_ARRAY(size_t, _surviving_young_words_base);
1960 } 1960 }
1961 1961
2043 void set_partial_scan_closure(G1ParScanPartialArrayClosure* partial_scan_cl) { 2043 void set_partial_scan_closure(G1ParScanPartialArrayClosure* partial_scan_cl) {
2044 _partial_scan_cl = partial_scan_cl; 2044 _partial_scan_cl = partial_scan_cl;
2045 } 2045 }
2046 2046
2047 int* hash_seed() { return &_hash_seed; } 2047 int* hash_seed() { return &_hash_seed; }
2048 int queue_num() { return _queue_num; } 2048 uint queue_num() { return _queue_num; }
2049 2049
2050 size_t term_attempts() const { return _term_attempts; } 2050 size_t term_attempts() const { return _term_attempts; }
2051 void note_term_attempt() { _term_attempts++; } 2051 void note_term_attempt() { _term_attempts++; }
2052 2052
2053 void start_strong_roots() { 2053 void start_strong_roots() {