comparison src/share/vm/gc_implementation/parallelScavenge/psScavenge.hpp @ 6818:22b8d3d181d9

8000351: Tenuring threshold should be unsigned Summary: Change the flags and variables related to tenuring threshold to be unsigned Reviewed-by: jmasa, johnc
author jwilhelm
date Wed, 03 Oct 2012 20:31:41 +0200
parents da91efe96a93
children 47bdfb3d010f
comparison
equal deleted inserted replaced
6817:f81a7c0c618d 6818:22b8d3d181d9
64 // Flags/counters 64 // Flags/counters
65 static ReferenceProcessor* _ref_processor; // Reference processor for scavenging. 65 static ReferenceProcessor* _ref_processor; // Reference processor for scavenging.
66 static PSIsAliveClosure _is_alive_closure; // Closure used for reference processing 66 static PSIsAliveClosure _is_alive_closure; // Closure used for reference processing
67 static CardTableExtension* _card_table; // We cache the card table for fast access. 67 static CardTableExtension* _card_table; // We cache the card table for fast access.
68 static bool _survivor_overflow; // Overflow this collection 68 static bool _survivor_overflow; // Overflow this collection
69 static int _tenuring_threshold; // tenuring threshold for next scavenge 69 static uint _tenuring_threshold; // tenuring threshold for next scavenge
70 static elapsedTimer _accumulated_time; // total time spent on scavenge 70 static elapsedTimer _accumulated_time; // total time spent on scavenge
71 static HeapWord* _young_generation_boundary; // The lowest address possible for the young_gen. 71 static HeapWord* _young_generation_boundary; // The lowest address possible for the young_gen.
72 // This is used to decide if an oop should be scavenged, 72 // This is used to decide if an oop should be scavenged,
73 // cards should be marked, etc. 73 // cards should be marked, etc.
74 static Stack<markOop, mtGC> _preserved_mark_stack; // List of marks to be restored after failed promotion 74 static Stack<markOop, mtGC> _preserved_mark_stack; // List of marks to be restored after failed promotion
75 static Stack<oop, mtGC> _preserved_oop_stack; // List of oops that need their mark restored. 75 static Stack<oop, mtGC> _preserved_oop_stack; // List of oops that need their mark restored.
76 static CollectorCounters* _counters; // collector performance counters 76 static CollectorCounters* _counters; // collector performance counters
77 static bool _promotion_failed; 77 static bool _promotion_failed;
78 78
79 static void clean_up_failed_promotion(); 79 static void clean_up_failed_promotion();
80 80
81 static bool should_attempt_scavenge(); 81 static bool should_attempt_scavenge();
86 // Private accessors 86 // Private accessors
87 static CardTableExtension* const card_table() { assert(_card_table != NULL, "Sanity"); return _card_table; } 87 static CardTableExtension* const card_table() { assert(_card_table != NULL, "Sanity"); return _card_table; }
88 88
89 public: 89 public:
90 // Accessors 90 // Accessors
91 static int tenuring_threshold() { return _tenuring_threshold; } 91 static uint tenuring_threshold() { return _tenuring_threshold; }
92 static elapsedTimer* accumulated_time() { return &_accumulated_time; } 92 static elapsedTimer* accumulated_time() { return &_accumulated_time; }
93 static bool promotion_failed() { return _promotion_failed; } 93 static bool promotion_failed() { return _promotion_failed; }
94 static int consecutive_skipped_scavenges() 94 static int consecutive_skipped_scavenges()
95 { return _consecutive_skipped_scavenges; } 95 { return _consecutive_skipped_scavenges; }
96 96