Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 3868:ae73da50be4b
7081064: G1: remove develop params G1FixedSurvivorSpaceSize, G1FixedTenuringThreshold, and G1FixedEdenSize
Summary: Remove three develop parameters we don't use.
Reviewed-by: brutisso, jwilhelm
author | tonyp |
---|---|
date | Mon, 22 Aug 2011 10:16:33 -0400 |
parents | ff53346271fe |
children | 20213c8a3c40 |
comparison
equal
deleted
inserted
replaced
3867:ff53346271fe | 3868:ae73da50be4b |
---|---|
399 | 399 |
400 // start conservatively (around 50ms is about right) | 400 // start conservatively (around 50ms is about right) |
401 _concurrent_mark_remark_times_ms->add(0.05); | 401 _concurrent_mark_remark_times_ms->add(0.05); |
402 _concurrent_mark_cleanup_times_ms->add(0.20); | 402 _concurrent_mark_cleanup_times_ms->add(0.20); |
403 _tenuring_threshold = MaxTenuringThreshold; | 403 _tenuring_threshold = MaxTenuringThreshold; |
404 | 404 // _max_survivor_regions will be calculated by |
405 // if G1FixedSurvivorSpaceSize is 0 which means the size is not | 405 // calculate_young_list_target_length() during initialization. |
406 // fixed, then _max_survivor_regions will be calculated at | 406 _max_survivor_regions = 0; |
407 // calculate_young_list_target_length during initialization | |
408 _max_survivor_regions = G1FixedSurvivorSpaceSize / HeapRegion::GrainBytes; | |
409 | 407 |
410 assert(GCTimeRatio > 0, | 408 assert(GCTimeRatio > 0, |
411 "we should have set it to a default value set_g1_gc_flags() " | 409 "we should have set it to a default value set_g1_gc_flags() " |
412 "if a user set it to 0"); | 410 "if a user set it to 0"); |
413 _gc_overhead_perc = 100.0 * (1.0 / (1.0 + GCTimeRatio)); | 411 _gc_overhead_perc = 100.0 * (1.0 / (1.0 + GCTimeRatio)); |
2288 } | 2286 } |
2289 | 2287 |
2290 // Calculates survivor space parameters. | 2288 // Calculates survivor space parameters. |
2291 void G1CollectorPolicy::calculate_survivors_policy() | 2289 void G1CollectorPolicy::calculate_survivors_policy() |
2292 { | 2290 { |
2293 if (G1FixedSurvivorSpaceSize == 0) { | 2291 _max_survivor_regions = _young_list_target_length / SurvivorRatio; |
2294 _max_survivor_regions = _young_list_target_length / SurvivorRatio; | 2292 _tenuring_threshold = _survivors_age_table.compute_tenuring_threshold( |
2295 } else { | |
2296 _max_survivor_regions = G1FixedSurvivorSpaceSize / HeapRegion::GrainBytes; | |
2297 } | |
2298 | |
2299 if (G1FixedTenuringThreshold) { | |
2300 _tenuring_threshold = MaxTenuringThreshold; | |
2301 } else { | |
2302 _tenuring_threshold = _survivors_age_table.compute_tenuring_threshold( | |
2303 HeapRegion::GrainWords * _max_survivor_regions); | 2293 HeapRegion::GrainWords * _max_survivor_regions); |
2304 } | |
2305 } | 2294 } |
2306 | 2295 |
2307 #ifndef PRODUCT | 2296 #ifndef PRODUCT |
2308 class HRSortIndexIsOKClosure: public HeapRegionClosure { | 2297 class HRSortIndexIsOKClosure: public HeapRegionClosure { |
2309 CollectionSetChooser* _chooser; | 2298 CollectionSetChooser* _chooser; |