Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/parallelScavenge/adjoiningGenerations.hpp @ 13060:8f07aa079343
8016309: assert(eden_size > 0 && survivor_size > 0) failed: just checking
7057939: jmap shows MaxNewSize=4GB when Java is using parallel collector
Summary: Major cleanup of the collectorpolicy classes
Reviewed-by: tschatzl, jcoomes
author | jwilhelm |
---|---|
date | Fri, 01 Nov 2013 17:09:38 +0100 |
parents | da91efe96a93 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
13059:46d7652b223c | 13060:8f07aa079343 |
---|---|
26 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_ADJOININGGENERATIONS_HPP | 26 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_ADJOININGGENERATIONS_HPP |
27 | 27 |
28 #include "gc_implementation/parallelScavenge/adjoiningVirtualSpaces.hpp" | 28 #include "gc_implementation/parallelScavenge/adjoiningVirtualSpaces.hpp" |
29 #include "gc_implementation/parallelScavenge/asPSOldGen.hpp" | 29 #include "gc_implementation/parallelScavenge/asPSOldGen.hpp" |
30 #include "gc_implementation/parallelScavenge/asPSYoungGen.hpp" | 30 #include "gc_implementation/parallelScavenge/asPSYoungGen.hpp" |
31 #include "gc_implementation/parallelScavenge/generationSizer.hpp" | |
31 | 32 |
32 | 33 |
33 // Contains two generations that both use an AdjoiningVirtualSpaces. | 34 // Contains two generations that both use an AdjoiningVirtualSpaces. |
34 // The two generations are adjacent in the reserved space for the | 35 // The two generations are adjacent in the reserved space for the |
35 // heap. Each generation has a virtual space and shrinking and | 36 // heap. Each generation has a virtual space and shrinking and |
54 void request_old_gen_expansion(size_t desired_change_in_bytes); | 55 void request_old_gen_expansion(size_t desired_change_in_bytes); |
55 // Move boundary down to expand young gen. | 56 // Move boundary down to expand young gen. |
56 bool request_young_gen_expansion(size_t desired_change_in_bytes); | 57 bool request_young_gen_expansion(size_t desired_change_in_bytes); |
57 | 58 |
58 public: | 59 public: |
59 AdjoiningGenerations(ReservedSpace rs, | 60 AdjoiningGenerations(ReservedSpace rs, GenerationSizer* policy, size_t alignment); |
60 size_t init_low_byte_size, | |
61 size_t min_low_byte_size, | |
62 size_t max_low_byte_size, | |
63 size_t init_high_byte_size, | |
64 size_t min_high_byte_size, | |
65 size_t max_high_bytes_size, | |
66 size_t alignment); | |
67 | 61 |
68 // Accessors | 62 // Accessors |
69 PSYoungGen* young_gen() { return _young_gen; } | 63 PSYoungGen* young_gen() { return _young_gen; } |
70 PSOldGen* old_gen() { return _old_gen; } | 64 PSOldGen* old_gen() { return _old_gen; } |
71 | 65 |