10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1CARDCOUNTS_HPP
26 #define SHARE_VM_GC_IMPLEMENTATION_G1_G1CARDCOUNTS_HPP
27
28 #include "gc_implementation/g1/g1RegionToSpaceMapper.hpp"
29 #include "memory/allocation.hpp"
30 #include "runtime/virtualspace.hpp"
31 #include "utilities/globalDefinitions.hpp"
32
33 class CardTableModRefBS;
34 class G1CardCounts;
35 class G1CollectedHeap;
36 class G1RegionToSpaceMapper;
37 class HeapRegion;
38
39 class G1CardCountsMappingChangedListener : public G1MappingChangedListener {
40 private:
41 G1CardCounts* _counts;
42 public:
43 void set_cardcounts(G1CardCounts* counts) { _counts = counts; }
44
45 virtual void on_commit(uint start_idx, size_t num_regions, bool zero_filled);
46 };
47
48 // Table to track the number of times a card has been refined. Once
49 // a card has been refined a certain number of times, it is
50 // considered 'hot' and its refinement is delayed by inserting the
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1CARDCOUNTS_HPP
26 #define SHARE_VM_GC_IMPLEMENTATION_G1_G1CARDCOUNTS_HPP
27
28 #include "gc_implementation/g1/g1RegionToSpaceMapper.hpp"
29 #include "memory/allocation.hpp"
30 #include "memory/virtualspace.hpp"
31 #include "utilities/globalDefinitions.hpp"
32
33 class CardTableModRefBS;
34 class G1CardCounts;
35 class G1CollectedHeap;
36 class G1RegionToSpaceMapper;
37 class HeapRegion;
38
39 class G1CardCountsMappingChangedListener : public G1MappingChangedListener {
40 private:
41 G1CardCounts* _counts;
42 public:
43 void set_cardcounts(G1CardCounts* counts) { _counts = counts; }
44
45 virtual void on_commit(uint start_idx, size_t num_regions, bool zero_filled);
46 };
47
48 // Table to track the number of times a card has been refined. Once
49 // a card has been refined a certain number of times, it is
50 // considered 'hot' and its refinement is delayed by inserting the
|