src/share/vm/memory/collectorPolicy.hpp

changeset 4554
95ccff9eee8e
parent 4037
da91efe96a93
child 4557
1135141fb97e
equal deleted inserted replaced
4553:84304a77c4e3 4554:95ccff9eee8e
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.
319 return CollectorPolicy::TwoGenerationCollectorPolicyKind; 319 return CollectorPolicy::TwoGenerationCollectorPolicyKind;
320 } 320 }
321 321
322 // Returns true is gen0 sizes were adjusted 322 // Returns true is gen0 sizes were adjusted
323 bool adjust_gen0_sizes(size_t* gen0_size_ptr, size_t* gen1_size_ptr, 323 bool adjust_gen0_sizes(size_t* gen0_size_ptr, size_t* gen1_size_ptr,
324 size_t heap_size, size_t min_gen1_size); 324 const size_t heap_size, const size_t min_gen1_size);
325 }; 325 };
326 326
327 class MarkSweepPolicy : public TwoGenerationCollectorPolicy { 327 class MarkSweepPolicy : public TwoGenerationCollectorPolicy {
328 protected: 328 protected:
329 void initialize_generations(); 329 void initialize_generations();

mercurial