hotspot/src/share/vm/gc_implementation/g1/g1AllocRegion.cpp
changeset 24424 2658d7834c6e
parent 24351 61b33cc6d3cf
child 26837 72a43d3841e7
equal deleted inserted replaced
24358:8528b67f6562 24424:2658d7834c6e
     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.
   141 }
   141 }
   142 
   142 
   143 void G1AllocRegion::fill_in_ext_msg(ar_ext_msg* msg, const char* message) {
   143 void G1AllocRegion::fill_in_ext_msg(ar_ext_msg* msg, const char* message) {
   144   msg->append("[%s] %s c: %u b: %s r: "PTR_FORMAT" u: "SIZE_FORMAT,
   144   msg->append("[%s] %s c: %u b: %s r: "PTR_FORMAT" u: "SIZE_FORMAT,
   145               _name, message, _count, BOOL_TO_STR(_bot_updates),
   145               _name, message, _count, BOOL_TO_STR(_bot_updates),
   146               _alloc_region, _used_bytes_before);
   146               p2i(_alloc_region), _used_bytes_before);
   147 }
   147 }
   148 
   148 
   149 void G1AllocRegion::init() {
   149 void G1AllocRegion::init() {
   150   trace("initializing");
   150   trace("initializing");
   151   assert(_alloc_region == NULL && _used_bytes_before == 0,
   151   assert(_alloc_region == NULL && _used_bytes_before == 0,