Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1AllocRegion.cpp @ 6010:720b6a76dd9d
7157073: G1: type change size_t -> uint for region counts / indexes
Summary: Change the type of fields / variables / etc. that represent region counts and indeces from size_t to uint.
Reviewed-by: iveresov, brutisso, jmasa, jwilhelm
author | tonyp |
---|---|
date | Wed, 18 Apr 2012 07:21:15 -0400 |
parents | f44782f04dd4 |
children | 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
6009:dde53abda3d6 | 6010:720b6a76dd9d |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2011, 2012, 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. |
138 } | 138 } |
139 ShouldNotReachHere(); | 139 ShouldNotReachHere(); |
140 } | 140 } |
141 | 141 |
142 void G1AllocRegion::fill_in_ext_msg(ar_ext_msg* msg, const char* message) { | 142 void G1AllocRegion::fill_in_ext_msg(ar_ext_msg* msg, const char* message) { |
143 msg->append("[%s] %s c: "SIZE_FORMAT" b: %s r: "PTR_FORMAT" u: "SIZE_FORMAT, | 143 msg->append("[%s] %s c: %u b: %s r: "PTR_FORMAT" u: "SIZE_FORMAT, |
144 _name, message, _count, BOOL_TO_STR(_bot_updates), | 144 _name, message, _count, BOOL_TO_STR(_bot_updates), |
145 _alloc_region, _used_bytes_before); | 145 _alloc_region, _used_bytes_before); |
146 } | 146 } |
147 | 147 |
148 void G1AllocRegion::init() { | 148 void G1AllocRegion::init() { |
213 } | 213 } |
214 } else { | 214 } else { |
215 jio_snprintf(rest_buffer, buffer_length, ""); | 215 jio_snprintf(rest_buffer, buffer_length, ""); |
216 } | 216 } |
217 | 217 |
218 tty->print_cr("[%s] "SIZE_FORMAT" %s : %s %s", | 218 tty->print_cr("[%s] %u %s : %s %s", |
219 _name, _count, hr_buffer, str, rest_buffer); | 219 _name, _count, hr_buffer, str, rest_buffer); |
220 } | 220 } |
221 } | 221 } |
222 #endif // G1_ALLOC_REGION_TRACING | 222 #endif // G1_ALLOC_REGION_TRACING |
223 | 223 |