Lines Matching defs:prt

179   // Bulk-free the PRTs from prt to last, assumes that they are
181 static void bulk_free(PerRegionTable* prt, PerRegionTable* last) {
185 PerRegionTable* res = (PerRegionTable*) Atomic::cmpxchg_ptr(prt, &_free_list, fl);
193 static void free(PerRegionTable* prt) {
194 bulk_free(prt, prt);
297 void OtherRegionsTable::link_to_all(PerRegionTable* prt) {
302 _first_all_fine_prts->set_prev(prt);
303 prt->set_next(_first_all_fine_prts);
306 _last_all_fine_prts = prt;
307 assert(prt->next() == NULL, "just checking");
310 prt->set_prev(NULL);
311 _first_all_fine_prts = prt;
313 assert(prt->prev() == NULL, "just checking");
314 assert(_first_all_fine_prts == prt, "just checking");
324 void OtherRegionsTable::unlink_from_all(PerRegionTable* prt) {
325 if (prt->prev() != NULL) {
326 assert(_first_all_fine_prts != prt, "just checking");
327 prt->prev()->set_next(prt->next());
329 if (_last_all_fine_prts == prt) {
330 _last_all_fine_prts = prt->prev();
333 assert(_first_all_fine_prts == prt, "just checking");
334 _first_all_fine_prts = prt->next();
341 if (prt->next() != NULL) {
342 prt->next()->set_prev(prt->prev());
345 prt->set_next(NULL);
346 prt->set_prev(NULL);
439 PerRegionTable* prt = find_region_table(ind, from_hr);
440 if (prt == NULL) {
443 prt = find_region_table(ind, from_hr);
444 if (prt == NULL) {
478 prt = delete_region_table();
480 // prt will be reused immediately, i.e. remain in the 'all' list.
481 prt->init(from_hr, false /* clear_links_to_all_list */);
483 prt = PerRegionTable::alloc(from_hr);
484 link_to_all(prt);
488 prt->set_collision_list_next(first_prt);
489 _fine_grain_regions[ind] = prt;
499 prt->add_card(c);
507 assert(prt != NULL && prt->hr() == from_hr, "consequence");
509 // Note that we can't assert "prt->hr() == from_hr", because of the
512 assert(prt != NULL, "Inv");
514 prt->add_reference(from);
532 PerRegionTable* prt = _fine_grain_regions[ind];
533 while (prt != NULL && prt->hr() != hr) {
534 prt = prt->collision_list_next();
537 return prt;
784 PerRegionTable* prt = *prev_addr;
785 while (prt != NULL && prt->hr() != hr) {
786 prev_addr = prt->collision_list_next_addr();
787 prt = prt->collision_list_next();
789 if (prt != NULL) {
790 assert(prt->hr() == hr, "Loop postcondition.");
791 *prev_addr = prt->collision_list_next();
792 unlink_from_all(prt);
793 PerRegionTable::free(prt);
814 PerRegionTable* prt = find_region_table(hr_ind & _mod_max_fine_entries_mask,
816 if (prt != NULL) {
817 return prt->contains_reference(from);