equal
deleted
inserted
replaced
595 // Resize the young generation at every collection |
595 // Resize the young generation at every collection |
596 // even if new sizes have not been calculated. This is |
596 // even if new sizes have not been calculated. This is |
597 // to allow resizes that may have been inhibited by the |
597 // to allow resizes that may have been inhibited by the |
598 // relative location of the "to" and "from" spaces. |
598 // relative location of the "to" and "from" spaces. |
599 |
599 |
600 // Resizing the old gen at minor collects can cause increases |
600 // Resizing the old gen at young collections can cause increases |
601 // that don't feed back to the generation sizing policy until |
601 // that don't feed back to the generation sizing policy until |
602 // a major collection. Don't resize the old gen here. |
602 // a full collection. Don't resize the old gen here. |
603 |
603 |
604 heap->resize_young_gen(size_policy->calculated_eden_size_in_bytes(), |
604 heap->resize_young_gen(size_policy->calculated_eden_size_in_bytes(), |
605 size_policy->calculated_survivor_size_in_bytes()); |
605 size_policy->calculated_survivor_size_in_bytes()); |
606 |
606 |
607 if (PrintAdaptiveSizePolicy) { |
607 if (PrintAdaptiveSizePolicy) { |