comparison src/share/vm/gc_implementation/parallelScavenge/psYoungGen.cpp @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents 63a4eb8bcd23
children 89152779163c
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
1 /* 1 /*
2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 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.
134 // committed. The minimum survivor size for -UseAdaptiveSizePolicy 134 // committed. The minimum survivor size for -UseAdaptiveSizePolicy
135 // is dependent on the committed portion (current capacity) of the 135 // is dependent on the committed portion (current capacity) of the
136 // generation - the less space committed, the smaller the survivor 136 // generation - the less space committed, the smaller the survivor
137 // space, possibly as small as an alignment. However, we are interested 137 // space, possibly as small as an alignment. However, we are interested
138 // in the case where the young generation is 100% committed, as this 138 // in the case where the young generation is 100% committed, as this
139 // is the point where eden reaches its maximum size. At this point, 139 // is the point where eden reachs its maximum size. At this point,
140 // the size of a survivor space is max_survivor_size. 140 // the size of a survivor space is max_survivor_size.
141 max_eden_size = size - 2 * max_survivor_size; 141 max_eden_size = size - 2 * max_survivor_size;
142 } 142 }
143 143
144 _eden_counters = new SpaceCounters("eden", 0, max_eden_size, _eden_space, 144 _eden_counters = new SpaceCounters("eden", 0, max_eden_size, _eden_space,
286 bool size_changed = false; 286 bool size_changed = false;
287 287
288 // There used to be this guarantee there. 288 // There used to be this guarantee there.
289 // guarantee ((eden_size + 2*survivor_size) <= _max_gen_size, "incorrect input arguments"); 289 // guarantee ((eden_size + 2*survivor_size) <= _max_gen_size, "incorrect input arguments");
290 // Code below forces this requirement. In addition the desired eden 290 // Code below forces this requirement. In addition the desired eden
291 // size and desired survivor sizes are desired goals and may 291 // size and disired survivor sizes are desired goals and may
292 // exceed the total generation size. 292 // exceed the total generation size.
293 293
294 assert(min_gen_size() <= orig_size && orig_size <= max_size(), "just checking"); 294 assert(min_gen_size() <= orig_size && orig_size <= max_size(), "just checking");
295 295
296 // Adjust new generation size 296 // Adjust new generation size