diff --git a/src/main/java/stormpot/BAllocThread.java b/src/main/java/stormpot/BAllocThread.java index e71c51f6..364e75a0 100644 --- a/src/main/java/stormpot/BAllocThread.java +++ b/src/main/java/stormpot/BAllocThread.java @@ -122,8 +122,7 @@ private void proactivelyHealPoison() { BSlot 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);