8076314: Remove the static instance variable SharedHeap:: _sh

Reviewed-by: pliden, jmasa
This commit is contained in:
Bengt Rutisson 2015-04-02 06:42:24 +02:00
parent 473bf6175f
commit bedce0572a
17 changed files with 33 additions and 88 deletions

View file

@ -79,7 +79,7 @@ void ageTable::merge_par(ageTable* subTable) {
}
}
uint ageTable::compute_tenuring_threshold(size_t survivor_capacity) {
uint ageTable::compute_tenuring_threshold(size_t survivor_capacity, GCPolicyCounters* gc_counters) {
size_t desired_survivor_size = (size_t)((((double) survivor_capacity)*TargetSurvivorRatio)/100);
uint result;
@ -126,9 +126,6 @@ uint ageTable::compute_tenuring_threshold(size_t survivor_capacity) {
age++;
}
if (UsePerfData) {
SharedHeap* sh = SharedHeap::heap();
CollectorPolicy* policy = sh->collector_policy();
GCPolicyCounters* gc_counters = policy->counters();
gc_counters->tenuring_threshold()->set_value(result);
gc_counters->desired_survivor_size()->set_value(
desired_survivor_size*oopSize);