636 assert(_cur_alloc_region == NULL || !_cur_alloc_region->isHumongous(), |
636 assert(_cur_alloc_region == NULL || !_cur_alloc_region->isHumongous(), |
637 "Prevent a regression of this bug."); |
637 "Prevent a regression of this bug."); |
638 |
638 |
639 // Now retry the allocation. |
639 // Now retry the allocation. |
640 if (_cur_alloc_region != NULL) { |
640 if (_cur_alloc_region != NULL) { |
|
641 if (allocated_young_region != NULL) { |
|
642 // We need to ensure that the store to top does not |
|
643 // float above the setting of the young type. |
|
644 OrderAccess::storestore(); |
|
645 } |
641 res = _cur_alloc_region->allocate(word_size); |
646 res = _cur_alloc_region->allocate(word_size); |
642 } |
647 } |
643 } |
648 } |
644 |
649 |
645 // NOTE: fails frequently in PRT |
650 // NOTE: fails frequently in PRT |