src/share/vm/memory/collectorPolicy.cpp

changeset 6680
78bbf4d43a14
parent 6642
9eddc467297f
child 6876
710a3c8b516e
child 7074
833b0f92429a
equal deleted inserted replaced
6678:7384f6a12fc1 6680:78bbf4d43a14
1 /* 1 /*
2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
767 767
768 // Give a warning if we seem to be looping forever. 768 // Give a warning if we seem to be looping forever.
769 if ((QueuedAllocationWarningCount > 0) && 769 if ((QueuedAllocationWarningCount > 0) &&
770 (try_count % QueuedAllocationWarningCount == 0)) { 770 (try_count % QueuedAllocationWarningCount == 0)) {
771 warning("TwoGenerationCollectorPolicy::mem_allocate_work retries %d times \n\t" 771 warning("TwoGenerationCollectorPolicy::mem_allocate_work retries %d times \n\t"
772 " size=%d %s", try_count, size, is_tlab ? "(TLAB)" : ""); 772 " size=" SIZE_FORMAT " %s", try_count, size, is_tlab ? "(TLAB)" : "");
773 } 773 }
774 } 774 }
775 } 775 }
776 776
777 HeapWord* GenCollectorPolicy::expand_heap_and_allocate(size_t size, 777 HeapWord* GenCollectorPolicy::expand_heap_and_allocate(size_t size,
936 } 936 }
937 loop_count++; 937 loop_count++;
938 if ((QueuedAllocationWarningCount > 0) && 938 if ((QueuedAllocationWarningCount > 0) &&
939 (loop_count % QueuedAllocationWarningCount == 0)) { 939 (loop_count % QueuedAllocationWarningCount == 0)) {
940 warning("satisfy_failed_metadata_allocation() retries %d times \n\t" 940 warning("satisfy_failed_metadata_allocation() retries %d times \n\t"
941 " size=%d", loop_count, word_size); 941 " size=" SIZE_FORMAT, loop_count, word_size);
942 } 942 }
943 } while (true); // Until a GC is done 943 } while (true); // Until a GC is done
944 } 944 }
945 945
946 // Return true if any of the following is true: 946 // Return true if any of the following is true:

mercurial