hotspot/src/share/vm/memory/collectorPolicy.hpp
changeset 15494 b3a322a0bea5
parent 13728 882756847a04
child 15497 cba24d845969
equal deleted inserted replaced
15493:fefe508991bb 15494:b3a322a0bea5
     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();