equal
deleted
inserted
replaced
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_AGETABLE_HPP |
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_AGETABLE_HPP |
27 |
27 |
28 #include "oops/markOop.hpp" |
28 #include "oops/markOop.hpp" |
29 #include "oops/oop.hpp" |
29 #include "oops/oop.hpp" |
30 #include "runtime/perfData.hpp" |
30 #include "runtime/perfData.hpp" |
|
31 |
|
32 class GCPolicyCounters; |
31 |
33 |
32 /* Copyright (c) 1992-2009 Oracle and/or its affiliates, and Stanford University. |
34 /* Copyright (c) 1992-2009 Oracle and/or its affiliates, and Stanford University. |
33 See the LICENSE file for license information. */ |
35 See the LICENSE file for license information. */ |
34 |
36 |
35 // Age table for adaptive feedback-mediated tenuring (scavenging) |
37 // Age table for adaptive feedback-mediated tenuring (scavenging) |
67 // for parallel young generation gc. |
69 // for parallel young generation gc. |
68 void merge(ageTable* subTable); |
70 void merge(ageTable* subTable); |
69 void merge_par(ageTable* subTable); |
71 void merge_par(ageTable* subTable); |
70 |
72 |
71 // calculate new tenuring threshold based on age information |
73 // calculate new tenuring threshold based on age information |
72 uint compute_tenuring_threshold(size_t survivor_capacity); |
74 uint compute_tenuring_threshold(size_t survivor_capacity, GCPolicyCounters* gc_counters); |
73 |
75 |
74 private: |
76 private: |
75 PerfVariable* _perf_sizes[table_size]; |
77 PerfVariable* _perf_sizes[table_size]; |
76 }; |
78 }; |
77 |
79 |