src/share/vm/memory/collectorPolicy.hpp

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

mercurial