1 /* |
1 /* |
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 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. |
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: %u 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 p2i(_alloc_region), _used_bytes_before); |
146 } |
146 } |
147 |
147 |
148 void G1AllocRegion::init() { |
148 void G1AllocRegion::init() { |
149 trace("initializing"); |
149 trace("initializing"); |
150 assert(_alloc_region == NULL && _used_bytes_before == 0, |
150 assert(_alloc_region == NULL && _used_bytes_before == 0, |