equal
deleted
inserted
replaced
565 } |
565 } |
566 |
566 |
567 // Give a warning if we seem to be looping forever. |
567 // Give a warning if we seem to be looping forever. |
568 if ((QueuedAllocationWarningCount > 0) && |
568 if ((QueuedAllocationWarningCount > 0) && |
569 (try_count % QueuedAllocationWarningCount == 0)) { |
569 (try_count % QueuedAllocationWarningCount == 0)) { |
570 warning("G1CollectedHeap::mem_allocate retries %d times", try_count); |
570 log_warning(gc)("G1CollectedHeap::mem_allocate retries %d times", try_count); |
571 } |
571 } |
572 } |
572 } |
573 |
573 |
574 ShouldNotReachHere(); |
574 ShouldNotReachHere(); |
575 return NULL; |
575 return NULL; |
674 } |
674 } |
675 |
675 |
676 // Give a warning if we seem to be looping forever. |
676 // Give a warning if we seem to be looping forever. |
677 if ((QueuedAllocationWarningCount > 0) && |
677 if ((QueuedAllocationWarningCount > 0) && |
678 (try_count % QueuedAllocationWarningCount == 0)) { |
678 (try_count % QueuedAllocationWarningCount == 0)) { |
679 warning("G1CollectedHeap::attempt_allocation_slow() " |
679 log_warning(gc)("G1CollectedHeap::attempt_allocation_slow() " |
680 "retries %d times", try_count); |
680 "retries %d times", try_count); |
681 } |
681 } |
682 } |
682 } |
683 |
683 |
684 ShouldNotReachHere(); |
684 ShouldNotReachHere(); |
685 return NULL; |
685 return NULL; |
1090 // performed a collection and reclaimed enough space. Give a |
1090 // performed a collection and reclaimed enough space. Give a |
1091 // warning if we seem to be looping forever. |
1091 // warning if we seem to be looping forever. |
1092 |
1092 |
1093 if ((QueuedAllocationWarningCount > 0) && |
1093 if ((QueuedAllocationWarningCount > 0) && |
1094 (try_count % QueuedAllocationWarningCount == 0)) { |
1094 (try_count % QueuedAllocationWarningCount == 0)) { |
1095 warning("G1CollectedHeap::attempt_allocation_humongous() " |
1095 log_warning(gc)("G1CollectedHeap::attempt_allocation_humongous() " |
1096 "retries %d times", try_count); |
1096 "retries %d times", try_count); |
1097 } |
1097 } |
1098 } |
1098 } |
1099 |
1099 |
1100 ShouldNotReachHere(); |
1100 ShouldNotReachHere(); |
1101 return NULL; |
1101 return NULL; |