# HG changeset patch # User Roman Kennke # Date 1422986340 -3600 # Node ID 0f18b2da554c8cf2c2fcec274b45eec7c6d95d88 # Parent c782867202052b2804420011698a82526815b0f0 When initializing _garbage_threshold, don't assign to itself. diff -r c78286720205 -r 0f18b2da554c src/share/vm/gc_implementation/shenandoah/shenandoahCollectorPolicy.cpp --- 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) {