equal
deleted
inserted
replaced
77 // methods are used). This is essentially a wrapper around the BitMap class, |
77 // methods are used). This is essentially a wrapper around the BitMap class, |
78 // with one bit per (1<<_shifter) HeapWords. (i.e. for the marking bit map, |
78 // with one bit per (1<<_shifter) HeapWords. (i.e. for the marking bit map, |
79 // we have _shifter == 0. and for the mod union table we have |
79 // we have _shifter == 0. and for the mod union table we have |
80 // shifter == CardTable::card_shift - LogHeapWordSize.) |
80 // shifter == CardTable::card_shift - LogHeapWordSize.) |
81 // XXX 64-bit issues in BitMap? |
81 // XXX 64-bit issues in BitMap? |
82 class CMSBitMap VALUE_OBJ_CLASS_SPEC { |
82 class CMSBitMap { |
83 friend class VMStructs; |
83 friend class VMStructs; |
84 |
84 |
85 HeapWord* _bmStartWord; // base address of range covered by map |
85 HeapWord* _bmStartWord; // base address of range covered by map |
86 size_t _bmWordSize; // map size (in #HeapWords covered) |
86 size_t _bmWordSize; // map size (in #HeapWords covered) |
87 const int _shifter; // shifts to convert HeapWord to bit position |
87 const int _shifter; // shifts to convert HeapWord to bit position |
329 |
329 |
330 // |
330 // |
331 // Timing, allocation and promotion statistics for gc scheduling and incremental |
331 // Timing, allocation and promotion statistics for gc scheduling and incremental |
332 // mode pacing. Most statistics are exponential averages. |
332 // mode pacing. Most statistics are exponential averages. |
333 // |
333 // |
334 class CMSStats VALUE_OBJ_CLASS_SPEC { |
334 class CMSStats { |
335 private: |
335 private: |
336 ConcurrentMarkSweepGeneration* const _cms_gen; // The cms (old) gen. |
336 ConcurrentMarkSweepGeneration* const _cms_gen; // The cms (old) gen. |
337 |
337 |
338 // The following are exponential averages with factor alpha: |
338 // The following are exponential averages with factor alpha: |
339 // avg = (100 - alpha) * avg + alpha * cur_sample |
339 // avg = (100 - alpha) * avg + alpha * cur_sample |