1.1 --- a/src/share/vm/memory/collectorPolicy.hpp Mon Oct 21 18:52:13 2013 +0200 1.2 +++ b/src/share/vm/memory/collectorPolicy.hpp Mon Oct 21 18:56:20 2013 +0200 1.3 @@ -79,6 +79,7 @@ 1.4 // Set to true when policy wants soft refs cleared. 1.5 // Reset to false by gc after it clears all soft refs. 1.6 bool _should_clear_all_soft_refs; 1.7 + 1.8 // Set to true by the GC if the just-completed gc cleared all 1.9 // softrefs. This is set to true whenever a gc clears all softrefs, and 1.10 // set to false each time gc returns to the mutator. For example, in the 1.11 @@ -101,8 +102,8 @@ 1.12 // Return maximum heap alignment that may be imposed by the policy 1.13 static size_t compute_max_alignment(); 1.14 1.15 - size_t min_alignment() { return _min_alignment; } 1.16 - size_t max_alignment() { return _max_alignment; } 1.17 + size_t min_alignment() { return _min_alignment; } 1.18 + size_t max_alignment() { return _max_alignment; } 1.19 1.20 size_t initial_heap_byte_size() { return _initial_heap_byte_size; } 1.21 size_t max_heap_byte_size() { return _max_heap_byte_size; } 1.22 @@ -248,7 +249,7 @@ 1.23 1.24 virtual int number_of_generations() = 0; 1.25 1.26 - virtual GenerationSpec **generations() { 1.27 + virtual GenerationSpec **generations() { 1.28 assert(_generations != NULL, "Sanity check"); 1.29 return _generations; 1.30 } 1.31 @@ -273,6 +274,12 @@ 1.32 virtual void initialize_size_policy(size_t init_eden_size, 1.33 size_t init_promo_size, 1.34 size_t init_survivor_size); 1.35 + 1.36 + // The alignment used for eden and survivors within the young gen 1.37 + // and for boundary between young gen and old gen. 1.38 + static size_t intra_heap_alignment() { 1.39 + return 64 * K * HeapWordSize; 1.40 + } 1.41 }; 1.42 1.43 // All of hotspot's current collectors are subtypes of this 1.44 @@ -300,8 +307,8 @@ 1.45 // Inherited methods 1.46 TwoGenerationCollectorPolicy* as_two_generation_policy() { return this; } 1.47 1.48 - int number_of_generations() { return 2; } 1.49 - BarrierSet::Name barrier_set_name() { return BarrierSet::CardTableModRef; } 1.50 + int number_of_generations() { return 2; } 1.51 + BarrierSet::Name barrier_set_name() { return BarrierSet::CardTableModRef; } 1.52 1.53 virtual CollectorPolicy::Name kind() { 1.54 return CollectorPolicy::TwoGenerationCollectorPolicyKind;