13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc/parallel/asPSOldGen.hpp"
27 #include "gc/parallel/parallelScavengeHeap.hpp"
28 #include "gc/parallel/psAdaptiveSizePolicy.hpp"
29 #include "gc/parallel/psMarkSweepDecorator.hpp"
30 #include "gc/shared/cardTableModRefBS.hpp"
31 #include "oops/oop.inline.hpp"
32 #include "runtime/java.hpp"
33
34 // Whereas PSOldGen takes the maximum size of the generation
35 // (which doesn't change in the case of PSOldGen) as a parameter,
36 // ASPSOldGen takes the upper limit on the size of
37 // the generation as a parameter. In ASPSOldGen the
38 // maximum size of the generation can change as the boundary
39 // moves. The "maximum size of the generation" is still a valid
40 // concept since the generation can grow and shrink within that
41 // maximum. There are lots of useful checks that use that
42 // maximum. In PSOldGen the method max_gen_size() returns
43 // _max_gen_size (as set by the PSOldGen constructor). This
44 // is how it always worked. In ASPSOldGen max_gen_size()
45 // returned the size of the reserved space for the generation.
46 // That can change as the boundary moves. Below the limit of
47 // the size of the generation is passed to the PSOldGen constructor
48 // for "_max_gen_size" (have to pass something) but it is not used later.
49 //
50 ASPSOldGen::ASPSOldGen(size_t initial_size,
51 size_t min_size,
52 size_t size_limit,
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc/parallel/asPSOldGen.hpp"
27 #include "gc/parallel/parallelScavengeHeap.hpp"
28 #include "gc/parallel/psAdaptiveSizePolicy.hpp"
29 #include "gc/parallel/psMarkSweepDecorator.hpp"
30 #include "gc/shared/cardTableModRefBS.hpp"
31 #include "oops/oop.inline.hpp"
32 #include "runtime/java.hpp"
33 #include "utilities/align.hpp"
34
35 // Whereas PSOldGen takes the maximum size of the generation
36 // (which doesn't change in the case of PSOldGen) as a parameter,
37 // ASPSOldGen takes the upper limit on the size of
38 // the generation as a parameter. In ASPSOldGen the
39 // maximum size of the generation can change as the boundary
40 // moves. The "maximum size of the generation" is still a valid
41 // concept since the generation can grow and shrink within that
42 // maximum. There are lots of useful checks that use that
43 // maximum. In PSOldGen the method max_gen_size() returns
44 // _max_gen_size (as set by the PSOldGen constructor). This
45 // is how it always worked. In ASPSOldGen max_gen_size()
46 // returned the size of the reserved space for the generation.
47 // That can change as the boundary moves. Below the limit of
48 // the size of the generation is passed to the PSOldGen constructor
49 // for "_max_gen_size" (have to pass something) but it is not used later.
50 //
51 ASPSOldGen::ASPSOldGen(size_t initial_size,
52 size_t min_size,
53 size_t size_limit,
|