Skip to content

Commit

Permalink
BlazePool should not eagerly heal non-poisoned slots
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvest committed Mar 14, 2014
1 parent b0f449f commit f7be767
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/stormpot/BAllocThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ private void proactivelyHealPoison() {
BSlot<T> slot;
slot = live.poll();
if (slot != null) {
// TODO test for this
if ((slot.isDead() || slot.live2dead()) /* && slot.poison != null */) {
if (slot.poison != null && (slot.isDead() || slot.live2dead())) {
realloc(slot);
} else {
live.offer(slot);
Expand Down

0 comments on commit f7be767

Please sign in to comment.