Mercurial > hg > openjdk > hsx20
changeset 2054:befa5106b5e9
6999988: CMS: Increased fragmentation leading to promotion failure after CR#6631166 got implemented
Reviewed-by: ysr, minqi
author | poonam |
---|---|
date | Fri, 11 Feb 2011 09:16:18 -0800 |
parents | ac21d3bfa63b |
children | 57090cdd4e01 |
files | src/share/vm/gc_implementation/shared/allocationStats.hpp |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/allocationStats.hpp Thu Feb 10 12:16:35 2011 -0800 +++ b/src/share/vm/gc_implementation/shared/allocationStats.hpp Fri Feb 11 09:16:18 2011 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -116,10 +116,10 @@ _demand_rate_estimate.sample(rate); float new_rate = _demand_rate_estimate.padded_average(); ssize_t old_desired = _desired; - _desired = (ssize_t)(new_rate * (inter_sweep_estimate - + CMSExtrapolateSweep - ? intra_sweep_estimate - : 0.0)); + + float delta_ise = (CMSExtrapolateSweep ? intra_sweep_estimate : 0.0); + _desired = (ssize_t)(new_rate * (inter_sweep_estimate + delta_ise)); + if (PrintFLSStatistics > 1) { gclog_or_tty->print_cr("demand: %d, old_rate: %f, current_rate: %f, new_rate: %f, old_desired: %d, new_desired: %d", demand, old_rate, rate, new_rate, old_desired, _desired);