equal
deleted
inserted
replaced
22 */ |
22 */ |
23 |
23 |
24 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHCOLLECTORPOLICY_HPP |
24 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHCOLLECTORPOLICY_HPP |
25 #define SHARE_GC_SHENANDOAH_SHENANDOAHCOLLECTORPOLICY_HPP |
25 #define SHARE_GC_SHENANDOAH_SHENANDOAHCOLLECTORPOLICY_HPP |
26 |
26 |
27 #include "gc/shared/collectorPolicy.hpp" |
|
28 #include "gc/shenandoah/shenandoahHeap.hpp" |
27 #include "gc/shenandoah/shenandoahHeap.hpp" |
29 #include "gc/shenandoah/shenandoahTracer.hpp" |
28 #include "gc/shenandoah/shenandoahTracer.hpp" |
|
29 #include "memory/allocation.hpp" |
30 #include "utilities/ostream.hpp" |
30 #include "utilities/ostream.hpp" |
31 |
31 |
32 class ShenandoahCollectorPolicy: public CollectorPolicy { |
32 class ShenandoahCollectorPolicy : public CHeapObj<mtGC> { |
33 private: |
33 private: |
34 size_t _success_concurrent_gcs; |
34 size_t _success_concurrent_gcs; |
35 size_t _success_degenerated_gcs; |
35 size_t _success_degenerated_gcs; |
36 size_t _success_full_gcs; |
36 size_t _success_full_gcs; |
37 size_t _alloc_failure_degenerated; |
37 size_t _alloc_failure_degenerated; |
49 |
49 |
50 size_t _cycle_counter; |
50 size_t _cycle_counter; |
51 |
51 |
52 public: |
52 public: |
53 ShenandoahCollectorPolicy(); |
53 ShenandoahCollectorPolicy(); |
54 |
|
55 void initialize_alignments(); |
|
56 |
54 |
57 // TODO: This is different from gc_end: that one encompasses one VM operation. |
55 // TODO: This is different from gc_end: that one encompasses one VM operation. |
58 // These two encompass the entire cycle. |
56 // These two encompass the entire cycle. |
59 void record_cycle_start(); |
57 void record_cycle_start(); |
60 |
58 |