Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/parNew/parNewGeneration.hpp @ 10405:f2110083203d
8005849: JEP 167: Event-Based JVM Tracing
Reviewed-by: acorn, coleenp, sla
Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
author | sla |
---|---|
date | Mon, 10 Jun 2013 11:30:51 +0200 |
parents | a30e7b564541 |
children | 9766f73e770d |
comparison
equal
deleted
inserted
replaced
10404:d0add7016434 | 10405:f2110083203d |
---|---|
23 */ | 23 */ |
24 | 24 |
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_PARNEW_PARNEWGENERATION_HPP | 25 #ifndef SHARE_VM_GC_IMPLEMENTATION_PARNEW_PARNEWGENERATION_HPP |
26 #define SHARE_VM_GC_IMPLEMENTATION_PARNEW_PARNEWGENERATION_HPP | 26 #define SHARE_VM_GC_IMPLEMENTATION_PARNEW_PARNEWGENERATION_HPP |
27 | 27 |
28 #include "gc_implementation/shared/gcTrace.hpp" | |
28 #include "gc_implementation/shared/parGCAllocBuffer.hpp" | 29 #include "gc_implementation/shared/parGCAllocBuffer.hpp" |
30 #include "gc_implementation/shared/copyFailedInfo.hpp" | |
29 #include "memory/defNewGeneration.hpp" | 31 #include "memory/defNewGeneration.hpp" |
30 #include "utilities/taskqueue.hpp" | 32 #include "utilities/taskqueue.hpp" |
31 | 33 |
32 class ChunkArray; | 34 class ChunkArray; |
33 class ParScanWithoutBarrierClosure; | 35 class ParScanWithoutBarrierClosure; |
103 size_t _overflow_refills; | 105 size_t _overflow_refills; |
104 size_t _overflow_refill_objs; | 106 size_t _overflow_refill_objs; |
105 #endif // TASKQUEUE_STATS | 107 #endif // TASKQUEUE_STATS |
106 | 108 |
107 // Stats for promotion failure | 109 // Stats for promotion failure |
108 size_t _promotion_failure_size; | 110 PromotionFailedInfo _promotion_failed_info; |
109 | 111 |
110 // Timing numbers. | 112 // Timing numbers. |
111 double _start; | 113 double _start; |
112 double _start_strong_roots; | 114 double _start_strong_roots; |
113 double _strong_roots_time; | 115 double _strong_roots_time; |
178 | 180 |
179 // Undo the most recent allocation ("obj", of "word_sz"). | 181 // Undo the most recent allocation ("obj", of "word_sz"). |
180 void undo_alloc_in_to_space(HeapWord* obj, size_t word_sz); | 182 void undo_alloc_in_to_space(HeapWord* obj, size_t word_sz); |
181 | 183 |
182 // Promotion failure stats | 184 // Promotion failure stats |
183 size_t promotion_failure_size() { return promotion_failure_size(); } | 185 void register_promotion_failure(size_t sz) { |
184 void log_promotion_failure(size_t sz) { | 186 _promotion_failed_info.register_copy_failure(sz); |
185 if (_promotion_failure_size == 0) { | 187 } |
186 _promotion_failure_size = sz; | 188 PromotionFailedInfo& promotion_failed_info() { |
187 } | 189 return _promotion_failed_info; |
188 } | 190 } |
189 void print_and_clear_promotion_failure_size(); | 191 bool promotion_failed() { |
192 return _promotion_failed_info.has_failed(); | |
193 } | |
194 void print_promotion_failure_size(); | |
190 | 195 |
191 #if TASKQUEUE_STATS | 196 #if TASKQUEUE_STATS |
192 TaskQueueStats & taskqueue_stats() const { return _work_queue->stats; } | 197 TaskQueueStats & taskqueue_stats() const { return _work_queue->stats; } |
193 | 198 |
194 size_t term_attempts() const { return _term_attempts; } | 199 size_t term_attempts() const { return _term_attempts; } |
334 static void waste_some_time(); | 339 static void waste_some_time(); |
335 | 340 |
336 // Preserve the mark of "obj", if necessary, in preparation for its mark | 341 // Preserve the mark of "obj", if necessary, in preparation for its mark |
337 // word being overwritten with a self-forwarding-pointer. | 342 // word being overwritten with a self-forwarding-pointer. |
338 void preserve_mark_if_necessary(oop obj, markOop m); | 343 void preserve_mark_if_necessary(oop obj, markOop m); |
344 | |
345 void handle_promotion_failed(GenCollectedHeap* gch, ParScanThreadStateSet& thread_state_set, ParNewTracer& gc_tracer); | |
339 | 346 |
340 protected: | 347 protected: |
341 | 348 |
342 bool _survivor_overflow; | 349 bool _survivor_overflow; |
343 | 350 |