Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1CardCounts.cpp @ 12343:d55c004e1d4d
8025305: Cleanup CardTableModRefBS usage in G1
Summary: Move some G1 specific code from CardTableModRefBS to G1SATBCardTableModRefBS.
Reviewed-by: brutisso, tschatzl, ehelin
author | mgerdin |
---|---|
date | Tue, 24 Sep 2013 14:46:29 +0200 |
parents | 9cb63cd234a0 |
children | 63a4eb8bcd23 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
12342:ccef6e165e8b | 12343:d55c004e1d4d |
---|---|
63 // The max value we can store in the counts table is | 63 // The max value we can store in the counts table is |
64 // max_jubyte. Guarantee the value of the hot | 64 // max_jubyte. Guarantee the value of the hot |
65 // threshold limit is no more than this. | 65 // threshold limit is no more than this. |
66 guarantee(G1ConcRSHotCardLimit <= max_jubyte, "sanity"); | 66 guarantee(G1ConcRSHotCardLimit <= max_jubyte, "sanity"); |
67 | 67 |
68 ModRefBarrierSet* bs = _g1h->mr_bs(); | 68 _ct_bs = _g1h->g1_barrier_set(); |
69 guarantee(bs->is_a(BarrierSet::CardTableModRef), "Precondition"); | |
70 _ct_bs = (CardTableModRefBS*)bs; | |
71 _ct_bot = _ct_bs->byte_for_const(_g1h->reserved_region().start()); | 69 _ct_bot = _ct_bs->byte_for_const(_g1h->reserved_region().start()); |
72 | 70 |
73 // Allocate/Reserve the counts table | 71 // Allocate/Reserve the counts table |
74 size_t reserved_bytes = _g1h->max_capacity(); | 72 size_t reserved_bytes = _g1h->max_capacity(); |
75 _reserved_max_card_num = reserved_bytes >> CardTableModRefBS::card_shift; | 73 _reserved_max_card_num = reserved_bytes >> CardTableModRefBS::card_shift; |