Mercurial > hg > shenandoah-preopenjdk-archive > openjdk8 > hotspot
changeset 7459:0f18b2da554c
When initializing _garbage_threshold, don't assign to itself.
author | Roman Kennke <rkennke@redhat.com> |
---|---|
date | Tue, 03 Feb 2015 18:59:00 +0100 |
parents | c78286720205 |
children | a5cdb779dc9c |
files | src/share/vm/gc_implementation/shenandoah/shenandoahCollectorPolicy.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shenandoah/shenandoahCollectorPolicy.cpp Fri Jan 23 11:07:18 2015 +0100 +++ b/src/share/vm/gc_implementation/shenandoah/shenandoahCollectorPolicy.cpp Tue Feb 03 18:59:00 2015 +0100 @@ -348,7 +348,7 @@ void set_garbage_threshold(uintx garbage_threshold) { this->_garbage_threshold_factor = get_percent(garbage_threshold); - this->_garbage_threshold = _garbage_threshold; + this->_garbage_threshold = garbage_threshold; } void set_allocation_threshold(uintx allocationThreshold) { @@ -448,7 +448,7 @@ void set_garbage_threshold(uintx garbage_threshold) { this->_garbage_threshold_factor = get_percent(garbage_threshold); - this->_garbage_threshold = _garbage_threshold; + this->_garbage_threshold = garbage_threshold; } void set_allocation_threshold(uintx allocationThreshold) {