Lines Matching refs:PerRegionTable

37 class PerRegionTable: public CHeapObj<mtGC> {
46 PerRegionTable* _next;
49 PerRegionTable* _prev;
52 PerRegionTable * _collision_list_next;
55 static PerRegionTable* _free_list;
65 PerRegionTable(HeapRegion* hr) :
181 static void bulk_free(PerRegionTable* prt, PerRegionTable* last) {
183 PerRegionTable* fl = _free_list;
185 PerRegionTable* res = (PerRegionTable*) Atomic::cmpxchg_ptr(prt, &_free_list, fl);
193 static void free(PerRegionTable* prt) {
197 // Returns an initialized PerRegionTable instance.
198 static PerRegionTable* alloc(HeapRegion* hr) {
199 PerRegionTable* fl = _free_list;
201 PerRegionTable* nxt = fl->next();
202 PerRegionTable* res =
203 (PerRegionTable*)
213 return new PerRegionTable(hr);
216 PerRegionTable* next() const { return _next; }
217 void set_next(PerRegionTable* next) { _next = next; }
218 PerRegionTable* prev() const { return _prev; }
219 void set_prev(PerRegionTable* prev) { _prev = prev; }
229 PerRegionTable* collision_list_next() const {
233 void set_collision_list_next(PerRegionTable* next) {
237 PerRegionTable** collision_list_next_addr() {
242 PerRegionTable* cur = _free_list;
245 res += sizeof(PerRegionTable);
252 PerRegionTable* PerRegionTable::_free_list = NULL;
271 typedef PerRegionTable* PerRegionTablePtr;
297 void OtherRegionsTable::link_to_all(PerRegionTable* prt) {
324 void OtherRegionsTable::unlink_from_all(PerRegionTable* prt) {
439 PerRegionTable* prt = find_region_table(ind, from_hr);
483 prt = PerRegionTable::alloc(from_hr);
487 PerRegionTable* first_prt = _fine_grain_regions[ind];
529 PerRegionTable*
532 PerRegionTable* prt = _fine_grain_regions[ind];
542 PerRegionTable* OtherRegionsTable::delete_region_table() {
545 PerRegionTable* max = NULL;
547 PerRegionTable** max_prev;
559 PerRegionTable** prev = &_fine_grain_regions[ii];
560 PerRegionTable* cur = *prev;
627 PerRegionTable* cur = _fine_grain_regions[i];
628 PerRegionTable** prev = &_fine_grain_regions[i];
630 PerRegionTable* nxt = cur->collision_list_next();
644 PerRegionTable::free(cur);
660 PerRegionTable::free(cur);
687 PerRegionTable * cur = _first_all_fine_prts;
709 PerRegionTable * cur = _first_all_fine_prts;
714 sum += (sizeof(PerRegionTable*) * _max_fine_entries);
726 return PerRegionTable::fl_mem_size();
741 PerRegionTable::bulk_free(_first_all_fine_prts, _last_all_fine_prts);
783 PerRegionTable** prev_addr = &_fine_grain_regions[ind];
784 PerRegionTable* prt = *prev_addr;
793 PerRegionTable::free(prt);
814 PerRegionTable* prt = find_region_table(hr_ind & _mod_max_fine_entries_mask,