comparison src/share/vm/memory/collectorPolicy.hpp @ 8013:95ccff9eee8e

6348447: Specifying -XX:OldSize crashes 64-bit VMs Summary: Heap size will be set to allow for OldSize to fit. Also reviewed by vitalyd@gmail.com Reviewed-by: ehelin, jmasa
author jwilhelm
date Mon, 28 Jan 2013 15:41:45 +0100
parents da91efe96a93
children 1135141fb97e
comparison
equal deleted inserted replaced
8012:84304a77c4e3 8013: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();