Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/asPSOldGen.cpp @ 18058:54bc75c144b0
Merge
author | asaha |
---|---|
date | Thu, 29 May 2014 13:14:25 -0700 |
parents | 78bbf4d43a14 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
18055:1fa005fb28f5 | 18058:54bc75c144b0 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 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. |
125 size_t result = policy->promo_increment_aligned_down(max_contraction); | 125 size_t result = policy->promo_increment_aligned_down(max_contraction); |
126 // Also adjust for inter-generational alignment | 126 // Also adjust for inter-generational alignment |
127 size_t result_aligned = align_size_down(result, gen_alignment); | 127 size_t result_aligned = align_size_down(result, gen_alignment); |
128 if (PrintAdaptiveSizePolicy && Verbose) { | 128 if (PrintAdaptiveSizePolicy && Verbose) { |
129 gclog_or_tty->print_cr("\nASPSOldGen::available_for_contraction:" | 129 gclog_or_tty->print_cr("\nASPSOldGen::available_for_contraction:" |
130 " %d K / 0x%x", result_aligned/K, result_aligned); | 130 " " SSIZE_FORMAT " K / " SIZE_FORMAT_HEX, (result_aligned/K), result_aligned); |
131 gclog_or_tty->print_cr(" reserved().byte_size() %d K / 0x%x ", | 131 gclog_or_tty->print_cr(" reserved().byte_size() " SSIZE_FORMAT " K / " SIZE_FORMAT_HEX " ", |
132 reserved().byte_size()/K, reserved().byte_size()); | 132 (reserved().byte_size()/K), reserved().byte_size()); |
133 size_t working_promoted = (size_t) policy->avg_promoted()->padded_average(); | 133 size_t working_promoted = (size_t) policy->avg_promoted()->padded_average(); |
134 gclog_or_tty->print_cr(" padded promoted %d K / 0x%x", | 134 gclog_or_tty->print_cr(" padded promoted " SSIZE_FORMAT " K / " SIZE_FORMAT_HEX, |
135 working_promoted/K, working_promoted); | 135 (working_promoted/K), working_promoted); |
136 gclog_or_tty->print_cr(" used %d K / 0x%x", | 136 gclog_or_tty->print_cr(" used " SSIZE_FORMAT " K / " SIZE_FORMAT_HEX, |
137 used_in_bytes()/K, used_in_bytes()); | 137 (used_in_bytes()/K), used_in_bytes()); |
138 gclog_or_tty->print_cr(" min_gen_size() %d K / 0x%x", | 138 gclog_or_tty->print_cr(" min_gen_size() " SSIZE_FORMAT " K / " SIZE_FORMAT_HEX, |
139 min_gen_size()/K, min_gen_size()); | 139 (min_gen_size()/K), min_gen_size()); |
140 gclog_or_tty->print_cr(" max_contraction %d K / 0x%x", | 140 gclog_or_tty->print_cr(" max_contraction " SSIZE_FORMAT " K / " SIZE_FORMAT_HEX, |
141 max_contraction/K, max_contraction); | 141 (max_contraction/K), max_contraction); |
142 gclog_or_tty->print_cr(" without alignment %d K / 0x%x", | 142 gclog_or_tty->print_cr(" without alignment " SSIZE_FORMAT " K / " SIZE_FORMAT_HEX, |
143 policy->promo_increment(max_contraction)/K, | 143 (policy->promo_increment(max_contraction)/K), |
144 policy->promo_increment(max_contraction)); | 144 policy->promo_increment(max_contraction)); |
145 gclog_or_tty->print_cr(" alignment 0x%x", gen_alignment); | 145 gclog_or_tty->print_cr(" alignment " SIZE_FORMAT_HEX, gen_alignment); |
146 } | 146 } |
147 assert(result_aligned <= max_contraction, "arithmetic is wrong"); | 147 assert(result_aligned <= max_contraction, "arithmetic is wrong"); |
148 return result_aligned; | 148 return result_aligned; |
149 } | 149 } |