hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2013, 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. |
3336 } |
3336 } |
3337 |
3337 |
3338 if (Verbose && PrintGC) { |
3338 if (Verbose && PrintGC) { |
3339 size_t new_mem_size = _virtual_space.committed_size(); |
3339 size_t new_mem_size = _virtual_space.committed_size(); |
3340 size_t old_mem_size = new_mem_size - bytes; |
3340 size_t old_mem_size = new_mem_size - bytes; |
3341 gclog_or_tty->print_cr("Expanding %s from %ldK by %ldK to %ldK", |
3341 gclog_or_tty->print_cr("Expanding %s from " SIZE_FORMAT "K by " SIZE_FORMAT "K to " SIZE_FORMAT "K", |
3342 name(), old_mem_size/K, bytes/K, new_mem_size/K); |
3342 name(), old_mem_size/K, bytes/K, new_mem_size/K); |
3343 } |
3343 } |
3344 } |
3344 } |
3345 return result; |
3345 return result; |
3346 } |
3346 } |
9201 } |
9201 } |
9202 |
9202 |
9203 if (Verbose && PrintGCDetails) { |
9203 if (Verbose && PrintGCDetails) { |
9204 size_t new_mem_size = _virtual_space.committed_size(); |
9204 size_t new_mem_size = _virtual_space.committed_size(); |
9205 size_t old_mem_size = new_mem_size + bytes; |
9205 size_t old_mem_size = new_mem_size + bytes; |
9206 gclog_or_tty->print_cr("Shrinking %s from %ldK by %ldK to %ldK", |
9206 gclog_or_tty->print_cr("Shrinking %s from " SIZE_FORMAT "K by " SIZE_FORMAT "K to " SIZE_FORMAT "K", |
9207 name(), old_mem_size/K, bytes/K, new_mem_size/K); |
9207 name(), old_mem_size/K, bytes/K, new_mem_size/K); |
9208 } |
9208 } |
9209 } |
9209 } |
9210 |
9210 |
9211 assert(_cmsSpace->unallocated_block() <= _cmsSpace->end(), |
9211 assert(_cmsSpace->unallocated_block() <= _cmsSpace->end(), |